Get Started
Form
Components
- Accordion
- Alert
- Alert Dialog
- Badge
- Breadcrumbs
- Button Group
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- File Field
- Hover Card
- Kbd
- Menubar
- Navigation Menu
- Number Field
- OTP Field
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Search
- Segmented Control
- Select
- Separator
- Sidebar
- Skeleton
- Slider
- Sonner
- Switch
- Table
- Tabs
- Text Field
- Toggle Group
- Toggle Button
- Tooltip
Component sonner-demo not found in registry.
Installation
Install the following dependencies:
Copy and paste the following code into your project:
Add the Toaster component
import { Toaster } from "@/components/ui/sonner"
export default function App() {
return (
<Router
root={(props) => (
<Suspense>
{props.children}
<Toaster />
</Suspense>
)}
>
<FileRoutes />
</Router>
)
}Usage
import { toast } from "somoto"toast("Event has been created.")Changelog
2025-11-13 Icons
We've updated the Sonner component to use icons. Update your sonner.tsx file to use the new icons.