Alert
The Alert component displays important messages to users with different severity levels, variants, and optional actions like dismissal. Title and body each accept full
<Text> props via titleProps / bodyProps.Examples
(3)Properties
(29)Playground
Basics
Use
severity to set it — it picks the matching color and icon automatically.Variants
Compare light, outline, filled, and subtle variants to match alert prominence to the message.
Dismissible
Add
withCloseButton and handle onClose to let users dismiss an alert.Scan to open this page on your phonereact-ui-library.com/components/Alert
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources