Skip to main content

useToast

useToast is a hook that shows and hides notifications from your components, such as reporting a finished upload or announcing a preview.

Import

import { useToast } from '@vortexlabs/vortex';

Allied components

Other links

Return value

useToast return value
PropTypeDefaultAttributes
show
callback
No default value
hide
callback
No default value
id
string
No default value

show

show options
PropTypeDefaultAttributes
layout
union
inline
icon
union
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
closeAriaLabel
string
No default value
closable
boolean
true
tone
union
inverse
className
union
No default value
attributes
object
No default value
timeout
union
brief
position
union
bottom-end