Notice
import { Notice } from "@study/ui"
Result
Loading...
Live Editor
<Notice tone="danger" title="Upload failed" action={<Button size="sm">Try again</Button>}> Chapter 4.pdf is larger than 95 MB. </Notice>
Variants and states
Light
Claude can create deadlines and tasks for you.
Connected
Your calendar is synced every hour.
The key expires in 5 days.
Wrong password.
Dark
Claude can create deadlines and tasks for you.
Connected
Your calendar is synced every hour.
The key expires in 5 days.
Wrong password.
When to use
- What people must read or what stays: errors when saving, an expiring key, an explanation.
- Short confirmations like "Saved": Toast.
- Errors about a field:
erroron the field, not here.
Props
| Prop | Type | Default | Meaning |
|---|---|---|---|
action | ReactNode | – | A button or link at the end, e.g. "Try again". |
className | string | – | |
title | ReactNode | – | |
tone | "danger" | "info" | "warning" | "success" | info |
Accessibility
dangerisrole="alert"and is read out at once; all others arestatus.- Icon and text carry the meaning, not only the colour.