docs: include Toaster component in toast.md usage (#479)
This commit is contained in:
parent
e36402491b
commit
11d77fb9a1
|
|
@ -45,11 +45,13 @@ import { useToast } from '@/components/ui/toast/use-toast'
|
|||
<script setup lang="ts">
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { useToast } from '@/components/ui/toast/use-toast'
|
||||
import { Toaster } from "@/components/ui/toast"
|
||||
|
||||
const { toast } = useToast()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Toaster />
|
||||
<Button
|
||||
@click="() => {
|
||||
toast({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user