Alertshadcn
A message in the page flow.
Feedback- Install
- npx shadcn add alert
- Import from
- @/components/ui/alert
- Guidance
- draft · v0.1.0
Examples
As installed from shadcn – rendering in jsp-ds tokens through the bridge.
Review closes on Friday
Comments added after 5pm won’t be included in this round.
We couldn’t upload 2 files
Files must be under 25 MB. Make them smaller and try again.
Guidance
When to use
- A message that belongs to the page or a section: a deadline, a problem with what's shown, a result.
When not to use
- A brief confirmation of something the person just did – use a Toast.
- A question that blocks the person – use a Dialog.
Rules
- Always an icon and a title – never colour alone.
- Say what happened and what to do next: We couldn't upload 2 files. Files must be under 25 MB.
- Destructive is for errors; for everything else use the default.
Install
Terminal
npx shadcn add alertImport
import { Alert } from "@/components/ui/alert"From shadcn’s own registry. Don’t edit the installed file – jsp-ds styles it through the bridge, and fixes go in styles/overrides.css with an issue.