NexoreUI
2.0
InstallationComponentsIconsTemplatesNewNexore MakePricing
Create Project
GitHub
NexoreUI
2.0
Navigation
InstallationComponentsIconsTemplatesNexore MakeCreate Project
InstallationComponents OverviewIcons
Categories (65)
ButtonInputCheckboxSelectSwitchSliderRatingFile Upload
CardAccordionTabsTableStepperScroll AreaNavigationDockData DisplayChartsCommerce
Modal (Dialog)AlertBadgeAvatarTooltipProgressSkeletonLoadersToasterSocial
Aurora Border CardAurora Search PillAI Prompt InputCommandInteractive Code BlockPro AI
Media ShowcaseOverlays & DrawersPro ButtonsPro DashboardsPro E-CommercePro FeedbackPro FormsPro InputsPro LayoutsPro ListsPro MarketingPro NavigationPro TablesSpecial FormsUltra Components
OverviewPro CardsPro ObjectsSoundPulseSilkUnveilNode Flow Graph
NexoreUI v2.0Studio
DocsToaster

Toaster

Stackable toast notifications with auto-dismiss, swipe gesture support, and theme synchronization.

On This Page
Quick ActionsProject StudioNewNexore Make (AI)Source on GitHub

Toaster

Stackable toast notifications with auto-dismiss, swipe gesture support, and theme synchronization.

Root Layout Setup

Add the <Toaster /> component once inside your root app/layout.tsx. You can then trigger toasts from any client component via toast().

component.tsx
1

Interactive Examples

Default Toast Notification

component.tsx
1

Status Variants (Success, Warning, Error)

component.tsx
1

Toast with Action Button

component.tsx
1

API Reference (Props)

PropTypeDefaultDescription
position'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center''bottom-right'Placement of toasts on screen viewport.
expandbooleanfalseWhether toasts should expand to full width on hover or click.
durationnumber4000Default display duration in milliseconds before dismiss.
visibleToastsnumber3Maximum number of stacked toasts displayed concurrently.
closeButtonbooleanfalseRender an explicit dismiss X button inside each toast.
richColorsbooleanfalseRender enriched contrast badges for success/error states.

Accessibility (a11y)

  • Screen Readers: Toasts are rendered inside an aria-live="polite" region, preventing interruption of active screen reader tasks.
  • Keyboard Dismiss: Interactive action buttons inside toasts can be navigated with Tab.
  • Focus Management: Triggering a toast does not yank cursor focus away from the current input or active workflow.