Skip to main content

Alert

Alert is an inline message that explains a situation in context, such as a failed download or a change to a flight.

Import

import { Alert } from '@vortexlabs/vortex-native';
import type { AlertProps } from '@vortexlabs/vortex-native';

Other links

Alert

Alert props
PropTypeDefaultAttributes
icon
IconProps["src"]
No default value
title
React.ReactNode
No default value
children
React.ReactNode
No default value
actionsSlot
React.ReactNode
No default value
tone
union
neutral
dismissible
union
false
closeAriaLabel
string
Close
bleed
number
No default value
announce
boolean
true
style
StyleProp<ViewStyle>
No default value
attributes
object
No default value

AlertDismissibleConfig

AlertDismissibleConfig props
PropTypeDefaultAttributes
persist
union
No default value
storageKey
string
No default value
dismissed
boolean
No default value
onClose
callback
No default value

AlertDismissalStorage

AlertDismissalStorage props
PropTypeDefaultAttributes
getItem
callback
No default value
setItem
callback
No default value