Alert

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.

Dismissible Alert

Pass dismissible and onDismiss to allow users to close inline banners.

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.

PropTypeDefaultDescription
variant"default" | "info" | "success" | "warning" | "danger""default"Semantic color and icon preset.
titlestringundefinedUppercase monospace heading.
iconReactNodeautoOverride the default semantic icon (pass null to hide).
dismissiblebooleanfalseShows a close button on the right.
onDismiss() => voidundefinedCallback fired when dismissed.