Components
For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
An opinionated toast component for React.
Basic usage of the Sonner component.
Add the Toaster component to your root layout:
Then you can use the toast function anywhere in your app:
Sonner provides several built-in toast variants like success, error, warning, and info.
Render a button in the toast to provide an action for the user.
Render a toast that updates based on the state of a promise.
You can change the position of the toast by passing the position prop.
The Toaster component is built on top of Sonner.