- Android
- iOS
- Web
Alert
Display a status or message with a title, supporting text, and optional actions.
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| type | string | default | Sets the indicator and title color. Use default, info, success, warning, or error. |
| message | ReactNode | Optional | Detail text below the title. |
| title | ReactNode | Optional | A short heading for the alert. |
| icon | ReactNode | Optional | Overrides the status icon. Pass null to hide it. |
| actions | ReactNode | Optional | Additional controls beside the message. |
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |
| titleClassName | string | Optional | Classes applied to the title. |
| messageClassName | string | Optional | Classes applied to the message. |
| closeClassName | string | Optional | Classes applied to the close button. |
| onClose | (() => void) | Optional | Adds a close button and runs when it is pressed. |
| role | string | Optional | |
| children | ReactNode | Optional | |
| description | string | Optional |