Toast
Used to display a temporary message to a user.
Importing
1
import { Toast } from '@infinityfx/fluid';Usage
With description and custom action
API reference
Toast Props
round?
boolean
false
title?
string
The main title heading text.
color?
string
Custom background color for the icon container badge.
icon?
React.ReactNode
Icon displayed on the left side of the toast.
action?
React.ReactNode
<Icon type="close" />
Custom dismiss button content displayed on the right.
onClose?
() => void
Callback function triggered when the toast is closed/dismissed.