Components
Loading preview...
Alert in shadcn/ui format
npx shadcn@latest add https://21st.dev/r/serafimcloud/alertimport { Alert } from "@/components/ui/alert"
import { Button } from "@/components/ui/button"
import { Radio, X } from "lucide-react"
function AlertLiveEvent() {
return (
<Alert
className="min-w-[400px]"
layout="row"
isNotification
size="lg"
action={
<Button
variant="ghost"
className="group -my-1.5 -me-2 size-8 p-0 hover:bg-transparent"
aria-label="Close notification"
>
<X
size={16}
strokeWidth={2}
className="opacity-60 transition-opacity group-hover:opacity-100"
/>
</Button>
}
>
<div className="flex items-center gap-3">
<div
className="flex size-9 shrink-0 items-center justify-center rounded-full border border-border"
aria-hidden="true"
>
<Radio className="opacity-60" size={16} strokeWidth={2} />
</div>
<div className="flex grow items-center justify-between gap-12">
<div className="space-y-1">
<p className="text-sm font-medium">Live in 27 hours</p>
<p className="text-xs text-muted-foreground">November 20 at 8:00 PM.</p>
</div>
<Button size="sm">Notify me</Button>
</div>
</div>
</Alert>
)
}
export { AlertLiveEvent }