You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
1.5 KiB

import type { VariantProps } from 'class-variance-authority'
import { cva } from 'class-variance-authority'
export { default as Button } from './Button.vue'
export const buttonVariants = cva(
'inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
{
variants: {
variant: {
default: 'btn-experimenta',
destructive: 'btn-destructive',
outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground rounded-[25px]',
secondary: 'btn-secondary',
ghost: 'hover:bg-accent hover:text-accent-foreground rounded-[25px]',
link: 'text-primary underline-offset-4 hover:underline',
experimenta: 'btn-experimenta',
},
size: {
default: 'px-[30px] py-[10px] text-lg leading-[1.7em]',
sm: 'h-9 rounded-[25px] px-3',
lg: 'h-11 rounded-[25px] px-8',
icon: 'h-10 w-10 rounded-[25px]',
'icon-sm': 'size-9 rounded-[25px]',
'icon-lg': 'size-11 rounded-[25px]',
experimenta: 'px-[30px] py-[10px] text-lg leading-[1.7em]',
},
},
defaultVariants: {
variant: 'default',
size: 'default',
},
}
)
export type ButtonVariants = VariantProps<typeof buttonVariants>