Callout
Emphasize important information. Guide users effectively.
Note
The CLI reads NACHUI_TOKEN from your shell first, then falls back to .env.local. Values in the shell always win.
Installation
pnpm dlx nachui add calloutAnatomy
Composition
Use the following composition to build a
Callout:Variants
info
Good to know
Preview deploys are kept for 30 days and then removed. Promote one to production if you need the URL to stay reachable.
warning
Breaking change in v3.0
Button no longer forwards the asChild prop. Wrap the child in Slot yourself before you upgrade, or the link inside it renders as a nested button.
danger
This cannot be undone
Deleting a project removes its deploys, environment variables, and request logs. Custom domains are released and can be claimed by anyone.
success
Recommended
Since v2.3 the compiler memoizes render output for you. New code can drop manual useMemo and useCallback wrappers around cheap values.
Custom Icon
You can override the default icon by providing the
icon prop to Callout.API Reference
Callout
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "info" | "warning" | "danger" | "success" | "default" | Controls the visual treatment and surface colors. |
icon | React.ReactNode | — | Optional custom icon. |
className | string | — | Additional CSS class names. |
children | React.ReactNode | — | Compose the callout with Title and Content. |
Callout.Title
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | — | Heading text for the callout. |
className | string | — | Additional CSS class names. |
Callout.Content
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | — | Body copy inside the callout. |
className | string | — | Additional CSS class names. |
Found something to improve?
Notice a bug, typo, or missing detail on this page? Help us make the documentation better by opening a GitHub issue.