skip to the page
superthread
componentssonner
system
superthread
version
2.15.1
date
24.11.26

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/sonner

example

show a notification below. loading resolves to success, every live toast can close, and dismiss all clears this pane.

light

notifications close after a few seconds. loading finishes with a success message.

dark

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.

light

dark

contact edgedraws 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.

light

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

dark

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.

light

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

dark

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.

light

dark