Controls

Alert

A callout for information, success, warnings and errors.

npx shadcn-svelte@latest add http://localhost:5173/r/alert.json

Variants

Neutral on the card surface; status variants tint the fill, border and text with their color, keeping the description a little softer than the title.

light
dark

Title only, no icon

Without an icon the text starts at the edge; a title alone sits on one line.

light
dark

With an action

An action takes its own column on the right, centred on the title line, so long text never runs under it.

light
dark