Skip to main content

Toast

Toast is a temporary notification that appears over a screen, such as confirmation that changes were saved or a message was archived.

Import

import { ToastProvider } from '@vortexlabs/vortex-native';
import type { ToastProviderProps } from '@vortexlabs/vortex-native';

Other links

ToastShowProps

Options for show
PropTypeDefaultAttributes
layout
union
inline
icon
IconProps["src"]
No default value
startSlot
React.ReactNode
No default value
title
React.ReactNode
No default value
description
React.ReactNode
No default value
children
React.ReactNode
No default value
actionsSlot
React.ReactNode
No default value
tone
union
inverse
dismissAriaLabel
string
Dismiss
style
StyleProp<ViewStyle>
No default value
attributes
object
No default value
closable
boolean
false
closeAriaLabel
string
No default value
timeout
union
brief
position
union
bottom

ToastProvider

ToastProvider props
PropTypeDefaultAttributes
children
React.ReactNode
No default value
options
object
No default value

ToastRegionOptions

ToastRegionOptions props
PropTypeDefaultAttributes
width
number
No default value
expanded
boolean
No default value
offset
number
No default value