Toast
Sonner toasts in a dark 12px-radius surface with the spoked spinner for loading, styled per toast so they look the same from any Toaster.
Interactive preview · desktop · dark
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
example.tsx
'use client';
import { Button } from '@/components/ui/button';import { notify } from '@/components/component-kit/items/toast-rounded';
export function Example() { return ( <Button onClick={() => notify.promise(new Promise((resolve) => setTimeout(resolve, 1200)), { loading: 'Publishing…', success: 'Published to 3 regions', error: 'Publish failed', }) } > Publish </Button> );}
// Mount once in your app layout for the kit's position defaults:// import { ToasterRounded } from '@/components/component-kit/items/toast-rounded';// <ToasterRounded />Props
| Prop | Type | Default | Description |
|---|---|---|---|
notify | object | — | message, success, error, info, warning, loading, promise and dismiss helpers. |
ToasterRounded | component | — | A Toaster with bottom-center position, 10px gap and three visible toasts. |