Skip to content

Commit

Permalink
docs: include Toaster component in toast.md usage (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
rookie-orange authored Apr 11, 2024
1 parent e364024 commit 11d77fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/www/src/content/docs/components/toast.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 11d77fb

Please sign in to comment.