Feedback
Alert
An inline banner with a title and a description, in default, success, warning and danger variants.
Group: Feedback. Exports: AlertBanner, Alert. shadcn/ui equivalent: Alert (matches).
Usage
import { AlertBanner } from "./halaska-kit";
AlertBanner props
titlestring: Heading text.descriptionstring: Supporting text.variantstring(default "default"): Visual variant.
Accessibility
- Danger and warning variants have the alert role. Default and success have the status role.
- Each variant has its own icon, so the meaning does not rest on colour alone. The icon is hidden from screen readers.
- Not dismissible and not focusable.
Used in
Halaska UI · Components · Patterns · Screens · Install