Skip to main content

Toaster

Toast notification system for displaying temporary messages

Example

sonner

Toaster

Toast notification system for displaying temporary messages

Source: packages/appkit-ui/src/react/ui/sonner.tsx

Props

PropTypeRequiredDefaultDescription
idstring--
invertboolean--
theme"light" | "dark" | "system"--
position"top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center"--
hotkeystring[]--
richColorsboolean--
expandboolean--
durationnumber--
gapnumber--
visibleToastsnumber--
closeButtonboolean--
toastOptionsToastOptions--
classNamestring--
styleCSSProperties--
offsetOffset--
mobileOffsetOffset--
dir"auto" | "ltr" | "rtl"--
swipeDirectionsSwipeDirection[]--
iconsToastIcons--
containerAriaLabelstring--

Usage

import { Toaster } from '@databricks/appkit-ui';

<Toaster /* props */ />

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs