Toast Description

PreviousNext

toast-description-demo

Docs
intentuipage

Preview

Loading preview…
components/docs/statuses/toast/toast-description-demo.tsx
"use client"

import { toast } from "sonner"
import { Button } from "@/components/ui/button"

export default function ToastDescriptionDemo() {
  return (
    <Button
      onPress={() =>
        toast("Cart Updated", {
          description: "Your item’s in the cart. Tap here to check it out.",
        })
      }
    >
      Add to Cart
    </Button>
  )
}

Installation

npx shadcn@latest add @intentui/toast-description-demo

Usage

Usage varies by registry entry. Refer to the registry docs or source files below for details.