Skip to main content

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.

Dark

Claude can create deadlines and tasks for you.

Connected

Your calendar is synced every hour.
The key expires in 5 days.

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: error on the field, not here.

Props​

PropTypeDefaultMeaning
actionReactNode–A button or link at the end, e.g. "Try again".
classNamestring–
titleReactNode–
tone"danger" | "info" | "warning" | "success"info

Accessibility​

  • danger is role="alert" and is read out at once; all others are status.
  • Icon and text carry the meaning, not only the colour.