Getting Started
Foundations
Components
Search for a command to run...
Alerts are used to communicate information that requires the user's attention but doesn't necessarily require immediate action. They can convey success messages, warnings, errors, or general information. Alerts are typically displayed inline within the page content and remain visible until dismissed or the condition changes.
import { Alert } from "@strongtie/design-system/alert"This module exports the following components:
AlertAlertContentAlertTitleAlertDescription<Alert>| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "destructive" | null | - |
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
alert
variant (default: default)
| Value | Classes |
|---|---|
default | (none) |
destructive | -destructive |
The following data attributes are used to identify component parts:
alertalert-contentalert-descriptionalert-titleOther CSS classes used by this component:
alert-contentalert-descriptionalert-titleEnsure proper accessibility attributes are added when implementing this component.