Toast
Toast is a message that is displayed temporarily on the screen. It is used to display a message to the user.
Preview
Properties
- Name
title
- Type
- string
- required
- *
- Description
The title of the toast.
- Name
type
- Type
- [default, warning, danger, success, info]
- required
- *
- Description
The type of the toast.
- Name
children
- Type
- [React.ReactNode]
- required
- *
- Description
The content of the component.
Configuration
ToastProvider
This needs to be wrapped around the root component of your application.
ToastViewport
This needs to be placed in the root component of your application.