Alert
Inline status banners backed by Rekodo semantic tokens with automatic icons and optional dismissal.
Semantic Variants
Uses all four Shimokita semantic status tokens: info, success, warning, and danger.
alert-variants.tsx
Deck Ready
Turntable calibrated at 33.3 RPM.
Now Pressing
Limited Shimokitazawa vinyl edition available.
Synced
Playlist exported to local audio cache.
Stylus Wear
Consider replacing the cartridge after 800 hours.
Signal Lost
Unable to reach audio stream endpoint.
Dismissible Alert
Pass dismissible and onDismiss to allow users to close inline banners.
alert-dismissible.tsx
Heads Up
Press Ctrl + K anywhere to open quick search.
Quick Import
Example.tsxtsx
1import { Alert } from "@rekodo/react";2
3export function Example() {4 return (5 <Alert variant="success" title="Synced">6 Playlist exported to local audio cache.7 </Alert>8 );9}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "info" | "success" | "warning" | "danger" | "default" | Semantic color and icon preset. |
| title | string | undefined | Uppercase monospace heading. |
| icon | ReactNode | auto | Override the default semantic icon (pass null to hide). |
| dismissible | boolean | false | Shows a close button on the right. |
| onDismiss | () => void | undefined | Callback fired when dismissed. |