Alert
An inline message with a quiet boundary and explicit announcement priority.
Preview
A new version is available
Your work stays here. Choose the next step when you are ready.
Use Alert
Alert is a named export of @flood-md/react. Connect the package once, then import what you use.
Design notes
- announcement defaults off: a static message does not automatically interrupt a screen reader. Polite uses role=status; assertive uses role=alert.
- Use assertive for newly inserted urgent messages, and verify with actual assistive technology. No focus movement, timeout or automatic dismissal is implemented.
- Title is optional. Icons are original decorative glyphs; pass icon={null} to omit or supply noninteractive artwork. Meaning must remain in the text.
- Native div props and ref target the message root. Available in 0.2.4.
API reference
View TypeScript source