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