Alert
Usage
API Reference
VoltAlertDescription — volt-alert-description
| Input | Type | Default |
|---|---|---|
| class | string | '' |
VoltAlertTitle — volt-alert-title
| Input | Type | Default |
|---|---|---|
| class | string | '' |
VoltAlert — volt-alert
| Input | Type | Default |
|---|---|---|
| variant | AlertVariants['variant'] | 'default' |
| role | AlertRole | null |
| class | string | '' |
CVA variants
| Prop | Options | Default |
|---|---|---|
| variant | default | info | success | warning | destructive | default |
Component Source
Install via CLI:
npx @voltui/cli add alertTypeScript
Loading editor…
Copy this code to your project. The component uses class-variance-authority.