Components•Sonner
Components•Sonner
Sonner
A toast notification trigger for confirming non-blocking actions.
Dependencies
Copy below cli
npx shadcn add @bjork-ui/primitive-sonnerHow to use
import { BjorkSonnerDemo } from "@/components/isaiahbjork/primitives";Props
classNamestringPass through styling hooks for the Sonner primitive without replacing the base Bjork surface.
childrenReactNodeComposable content, labels, icons, and nested content where the primitive supports them.
...propscomponent propsPass through the normal props for this primitive while the Bjork wrapper handles the visual treatment.
Toast action
Use for short async confirmation without blocking the interface.
<BjorkSonnerDemo />