Toast
FeedbackWeb + NativeMITStacked toast notifications with success / error / info / warning variants and actions.
bun add @otfdashkit/ui
Preview
ToastFeedback
Loading Storybook preview…
Code
@otfdashkit/uiimport { toast } from '@otfdashkit/ui'
import { Button } from '@otfdashkit/ui'
export function Example() {
return (
<div className="flex flex-wrap gap-2">
<Button onClick={() => toast('Default toast', { description: 'This is a default toast message' })}>Default</Button>
<Button variant="outline" onClick={() => toast.success('Success', { description: 'Operation completed' })}>Success</Button>
<Button variant="outline" onClick={() => toast.error('Error', { description: 'Something went wrong' })}>Error</Button>
<Button variant="outline" onClick={() => toast.warning('Warning', { description: 'Please review before continuing' })}>Warning</Button>
<Button variant="outline" onClick={() => toast.info('Info', { description: 'New version available' })}>Info</Button>
</div>
)
}
Free with the SDK. This component ships in @otfdashkit/ui under the MIT license.
Kit for this component
Everything Bundle$149 · 6 kits + 20 templates
Show brief confirmation messages after an action.