A shadcn-style toast component built with Ark UI primitives.

Installation

npx shadcn@latest add @ark-cn/toast

Usage

import * as Toast from "@/components/ui/toast"

Read exported parts in src/components/ui/toast.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Action

Basic

Loading

Types

Update

Promise

Duration

Placement

Varying heights

Stacked toasts

API reference

This component mirrors the upstream Ark UI primitive. All props and DOM behavior are defined by Ark unless you see an ark-cn-only row below.

ToastIndicator

PropTypeDescription
type?stringSelects icon and color (success, error, warning, info, loading, etc.).

See the ARK UI documentation for the full API.