byronwade/ui
Application UI

Feedback · Application UI

Alert

A compound alert component for surfacing inline feedback messages with an optional title, description, icon slot, and action button. Intent tones (success, warning, destructive) follow the semantic tokens.

Feature showcase

Installation

Features

  • 6 examples

    Default, Variants, With Icon, With Action, With Link, No Icon.

API

Props

PropTypeDefaultDescription
variant"default" | "success" | "warning" | "destructive""default"Intent tone of the alert, colors the title, icon, and description via semantic tokens (text on the card surface).
classNamestring-Additional CSS class names merged onto the root element.

Source and related

FilePath
Componentregistry/ui/alert.tsx
Default examplecontent/examples/alert/default.tsx
Variants examplecontent/examples/alert/variants.tsx
With Icon examplecontent/examples/alert/with-icon.tsx
With Action examplecontent/examples/alert/with-action.tsx
With Link examplecontent/examples/alert/with-link.tsx
No Icon examplecontent/examples/alert/no-icon.tsx