Function
Button
({
className,
variant = "default",
size = "default",
...props
}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>)
Source from the content-addressed store, hash-verified
| 43 | ) |
| 44 | |
| 45 | function Button({ |
| 46 | className, |
| 47 | variant = "default", |
| 48 | size = "default", |
| 49 | ...props |
| 50 | }: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>) { |
| 51 | return ( |
| 52 | <ButtonPrimitive |
| 53 | data-slot="button" |
| 54 | className={cn(buttonVariants({ variant, size, className }))} |
| 55 | {...props} |
| 56 | /> |
| 57 | ) |
| 58 | } |
| 59 | |
| 60 | export { Button, buttonVariants } |
Callers
nothing calls this directly
Tested by
no test coverage detected