Alerts are used to communicate a state that affects a system, feature or page.
NativeBase exports 5 Alert related components:
Alert: The wrapper for alert components.
Alert.Icon: The visual icon for the alert that changes based on the
Alert.Title: The title of the alert to be announced by screen readers.
Alert.Description: The description of the alert to be announced by screen readers.
Alert implements Box, so all the Box Props can be passed to it.
|status||The status of the alert.|
|variant||The variant of the alert style to use.|
|action||JSX.Element||The action to display. It renders after the message, at the end of the alert.||-|
Icon and changes the icon based on the status prop.
Alert.Title composes the
Alert.Description composes the