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