Toast
A succinct message that is displayed temporarily.
code
Expend code
Installation
1. Run the following command:
2. Add the Toaster component
Usage
The useToast hook returns a toast function that you can use to display a toast.
#Simple
code
Expend code
#Destructive
code
Expend code
Props
다음 속성을 사용하여 툴팁을 맞춤 설정할 수 있습니다.
Prop | Type | Default | Description |
---|---|---|---|
variant | "default" | "destructive" | default | The variant to use. |
title | string | - | The title to display. |
description | string | - | The description to display. |
duration | string | 3000 | The time in milliseconds that should elapse before automatically closing each toast. |