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

Installation

npx shadcn@latest add @ark-cn/alert

Usage

import * as Alert from "@/components/ui/alert"

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

Examples

Alert

With Icon

With Icon and Action Buttons

Success Alert

Warning Alert

Error Alert