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