Buckets:
| import * as React from 'react'; | |
| import { Slot } from '@radix-ui/react-slot'; | |
| import { type VariantProps } from 'class-variance-authority'; | |
| import { cn } from '@/lib/utils'; | |
| import { buttonVariants } from './button-variants'; | |
| interface ButtonProps | |
| extends React.ButtonHTMLAttributes<HTMLButtonElement>, | |
| VariantProps<typeof buttonVariants> { | |
| asChild?: boolean; | |
| } | |
| const Button = React.forwardRef<HTMLButtonElement, ButtonProps>( | |
| ({ className, variant, size, asChild = false, ...props }, ref) => { | |
| const Comp = asChild ? Slot : 'button'; | |
| return <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />; | |
| } | |
| ); | |
| Button.displayName = 'Button'; | |
| export { Button }; | |
Xet Storage Details
- Size:
- 702 Bytes
- Xet hash:
- 44cba59580dd438371935af5423425902ee0360944d16aa7af48d0d225bd6d77
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.