Kitchen Sink
This file contains a collection of various components and examples for testing and demonstration purposes.
You can import Next Components into mdx files like this:
Use a <Libraries /> component
import { Libraries } from '@/components/Libraries'
<Libraries />
<Guides />
<Resources />
Below are the rendered components for Libraries, Guides, and Resources:
Official libraries
PHP
A popular general-purpose scripting language that is especially suited to web development.
Ruby
A dynamic, open source programming language with a focus on simplicity and productivity.
Python
Python is a programming language that lets you work quickly and integrate systems more effectively.
Resources
Contacts
Learn about the contact model and how to create, retrieve, update, delete, and list contacts.
Conversations
Learn about the conversation model and how to create, retrieve, update, delete, and list conversations.
Messages
Learn about the message model and how to create, retrieve, update, delete, and list messages.
Adding a note is easy:
I am a simple note in green!
I am an alert in orange!
We can display code examples easily too:
Echoing out "Hello World" in different languages
// This is a JavaScript example
console.log("Hello world");
Just some Single JSON
{
"has_more": false,
"data": [
{
"id": "l7cGNIBKZiNJ6wqF",
"name": "Plaza Hotel",
"description": "World-renowned.",
"avatar_url": "https://assets.protocol.chat/avatars/plazahotel.jpg",
"contacts": [
{
"username": "Hector"
// ...
},
{
"username": "Cedric"
},
],
"created_at": 692233200,
"archived_at": null
},
{
"id": "hSIhXBhNe8X1d8Et"
}
]
}