CoreSonner
Toaster API
Every prop of Toaster, plus the 1 symbol it exports alongside them, generated from the package manifest.
import { Toaster } from '@oceanic-hub/brand-system'- Layer
- core — shadcn-derived primitives.
- Exports
- Toasteralso: toasttypes: ToasterProps
- Contract
- packages/brand-system/src/components/sonner.contract.test-d.ts
- Demos
- 6 on the Toaster page — rendered live, hydrated
- Source
- packages/brand-system/src/components/sonner.tsx
Generated from manifest/component-manifest.json, so it cannot drift from the source. For what Toaster is for, how it composes and what it looks like, see Toaster.
Toaster
Inherited from the primitive underneath — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
toast
A function. Re-exported from sonner — this package re-publishes it so a consumer has one import specifier rather than two, and so the version is pinned here.
(message: titleT, data?: ExternalToast): string | numberParameters
Prop
Type
Also reachable through it
Prop
Type