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