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 { CloseButton } from "@heroui/react"
import { Alert } from "@/components/ui/heroui-alert"
export default function CompactDemo() {
return (
<div className="w-full max-w-xl">
<Alert status="success" className="py-3">
<Alert.Indicator />
<Alert.Content>
<Alert.Title>Invoice paid successfully</Alert.Title>
</Alert.Content>
<CloseButton aria-label="Dismiss invoice message" />
</Alert>
</div>
)
}