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

다음 속성을 사용하여 툴팁을 맞춤 설정할 수 있습니다.

PropTypeDefaultDescription
variant"default" | "destructive"defaultThe variant to use.
titlestring-The title to display.
descriptionstring-The description to display.
durationstring3000The time in milliseconds that should elapse before automatically closing each toast.