@@ -10,20 +10,22 @@ const buttonVariants = cva(
1010 variants : {
1111 variant : {
1212 default : "bg-primary text-primary-foreground hover:bg-primary/90" ,
13+ secondary :
14+ "bg-secondary text-secondary-foreground hover:bg-secondary/80" ,
15+ outline :
16+ "border bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50" ,
17+ ghost :
18+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50" ,
1319 destructive :
1420 "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60" ,
21+ "destructive-outline" :
22+ "border border-destructive bg-background text-destructive shadow-xs hover:bg-destructive hover:text-white focus-visible:ring-destructive/20 dark:bg-input/30 dark:hover:bg-destructive/60 dark:focus-visible:ring-destructive/40" ,
23+ link : "text-primary underline-offset-4 hover:underline" ,
1524 success :
1625 "bg-success text-white hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40 dark:bg-success/60" ,
1726 info : "bg-info text-white hover:bg-info/90 focus-visible:ring-info/20 dark:focus-visible:ring-info/40 dark:bg-info/60" ,
1827 warning :
1928 "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning/20 dark:focus-visible:ring-warning/40 dark:bg-warning/60" ,
20- outline :
21- "border bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50" ,
22- secondary :
23- "bg-secondary text-secondary-foreground hover:bg-secondary/80" ,
24- ghost :
25- "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50" ,
26- link : "text-primary underline-offset-4 hover:underline" ,
2729 } ,
2830 size : {
2931 default : "h-9 px-4 py-2 has-[>svg]:px-3" ,
0 commit comments