Alert
Attract user attention with important static message
Import
Source
Docs
Package
Usage
Alert title
Color
Radius
Styles API
Alert
supports Styles API, you can add styles to any inner element of the component withclassNames
prop. Follow Styles API documentation to learn more.
Alert title
Component Styles API
Hover over selectors to highlight corresponding elements
Accessibility
- Root element role set to
alert
aria-describedby
set to body element id,aria-labelledby
set to title element id iftitle
is provided- Set
closeButtonLabel
prop to make close button accessible