Components · Feedback
Inline contextual message with optional title, icon, and dismiss action.
import { Alert } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'neutral' | — | Semantic colour tone of the alert. |
| title | string | — | — | Bold title rendered at the top of the alert. |
| icon | ReactNode | — | — | Custom icon rendered to the left of the content. |
| action | ReactNode | — | — | Action element (e.g. a button) rendered beside the content. |
| onClose | () => void | — | — | When provided, renders a close button that calls this handler. |