Components
Loading preview...
HeroUI v3 Alert — status-aware feedback messages built with the real @heroui/react package. Includes default, accent, success, warning and danger statuses, action buttons, close buttons, custom indicators, compact alerts, stacked notifications, maintenance notices and custom BEM/Tailwind styling. Works in light and dark themes.
npx shadcn@latest add https://21st.dev/r/hero_ui/heroui-alert"use client"
import { Button, CloseButton } from "@heroui/react"
import { Alert } from "@/components/ui/heroui-alert"
export default function StackedDemo() {
return (
<div className="grid w-full max-w-xl gap-3">
<Alert status="success">
<Alert.Indicator />
<Alert.Content>
<Alert.Title>Deployment complete</Alert.Title>
<Alert.Description>Production was updated 2 minutes ago.</Alert.Description>
</Alert.Content>
<CloseButton aria-label="Dismiss deployment message" />
</Alert>
<Alert status="accent">
<Alert.Indicator />
<Alert.Content>
<Alert.Title>Invite your team</Alert.Title>
<Alert.Description>Add collaborators to review this release.</Alert.Description>
</Alert.Content>
<Button className="hidden sm:block" size="sm" variant="primary">
Invite
</Button>
</Alert>
</div>
)
}