sonner
notifications on the leaf lift, through sonner's toast api. each kind keeps its status glyph beside a title and a short explanation.
bunx --bun shadcn@latest add @mk/sonnerexample
show a notification below. loading resolves to success, every live toast can close, and dismiss all clears this pane.
notifications close after a few seconds. loading finishes with a success message.
notifications close after a few seconds. loading finishes with a success message.
open
a published chapter with a small action, an outline cancel and a named close control. the persistent print stays within its own space.
draws where a floating layer meets the page, under its soft lift
kinds
plain carries words alone. success, info, warning, error and loading add their glyph; loading uses a static running mark.
plain
words without a status glyph
success
status glyph beside the words
info
status glyph beside the words
warning
status glyph beside the words
error
status glyph beside the words
loading
static running glyph, no spinner
plain
words without a status glyph
success
status glyph beside the words
info
status glyph beside the words
warning
status glyph beside the words
error
status glyph beside the words
loading
static running glyph, no spinner
states
actions keep the small button states. the toast owns the contact detail, so disabled actions keep a flat edge.
rest
small action and outline cancel
hover
small action and outline cancel
focus
outside control ring
pressed
small action and outline cancel
disabled
flat disabled actions
rest
small action and outline cancel
hover
small action and outline cancel
focus
outside control ring
pressed
small action and outline cancel
disabled
flat disabled actions
on a phone
position places the stack above 600 px, at the bottom right by default. on a phone it takes the toast’s place whatever position says: it drops from the top of the window, 12 px inside its edges, clear of the send bar at the page’s foot. a swipe up or right dismisses it. both frames use a 390 px viewport.