Alert
Variants
Set variants using variant
prop. All colors defined in your theme (or not) can be used.
This is a primary alert—check it out!
This is a secondary alert—check it out!
This is a success alert—check it out!
This is a danger alert—check it out!
This is a warning alert—check it out!
This is a info alert—check it out!
This is a light alert—check it out!
This is a dark alert—check it out!
Custom color
Accessibility
Alert
follows WAI-ARIA Alert Pattern.
- The role
alert
is automatically added
API
Alert
Property | Type | Required | Default | Description |
---|---|---|---|---|
children | node | false | - | |
variant | union | false | primary | Control the color variant of the component. |
Show xstyled properties |