Alert
Contextual feedback with a title, explanation and a place to recover.
Live — this one is real
Your draft is safe
Saved locally. Publish when you are ready.
Usage
import { Alert } from "mizu-ui";
export function Example() {
return (
<Alert title="Your draft is safe" tone="success">
Saved locally. Publish when you are ready.
</Alert>
);
}
Source & setup
Import mizu-ui/styles.css once. Fonts are optional via mizu-ui/fonts.css. Override --mizu-* tokens or use className for local styling. Uses native React and CSS; install the package peers for root imports.
Inspect status/Feedback.tsx
Source is included in the npm package under src/status/Feedback.tsx.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Short feedback heading. |
| tone | StatusTone | — | Feedback severity. |
| action | ReactNode | — | Optional recovery control. |
Accessibility
Error messages use role=alert; other feedback uses role=status. Write specific recovery instructions.
Motion
CSS transitions explain state changes. Reduced motion removes travel.