saturation/uisaturation/ui
DocsComponentsBlocksPages
GitHub

Sections

IntroductionComponentsInstallationMCPTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBeamBlur FadeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandComparison SliderContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmoji PickerEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNavigation MenuNovel EditorPaginationParallaxProgressProgressive BlurRadio GroupRippleSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Sonner

Sonner

Toast notifications powered by Sonner.

Loading...

Installation

pnpm dlx shadcn@latest add https://ui.saturation.io/r/sonner.json

Tailwind v4 — Source Scanning

Saturation UI copies component source into your project via the shadcn registry (no npm package). If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import { toast } from "sonner"
toast("Event has been created")

Examples

Success

Loading...
Success toast.

Error

Loading...
Error toast.

Action

Loading...
Toast with action button.

API Reference

PropTypeDefaultDescription
message*string—Toast message.
descriptionstring—Optional description.
PreviousSliderNextSpinner

On This Page

  • Installation
  • Usage
  • Examples
  • Success
  • Error
  • Action
  • API Reference