Function
Alert
({
className,
variant,
...props
}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>)
Source from the content-addressed store, hash-verified
| 16 | }) |
| 17 | |
| 18 | function Alert({ |
| 19 | className, |
| 20 | variant, |
| 21 | ...props |
| 22 | }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) { |
| 23 | return ( |
| 24 | <div |
| 25 | data-slot="alert" |
| 26 | role="alert" |
| 27 | className={cn(alertVariants({ variant }), className)} |
| 28 | {...props} |
| 29 | /> |
| 30 | ) |
| 31 | } |
| 32 | |
| 33 | function AlertTitle({ className, ...props }: React.ComponentProps<"div">) { |
| 34 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected