@@ -4,7 +4,7 @@ Displays a button or a component that looks like a button.
4
4
5
5
## Installation
6
6
7
- ### Run the following cli command or copy/paste the component code into your project
7
+ ** Run the following cli command or copy/paste the component code into your project**
8
8
9
9
``` sh
10
10
qwik-ui add button
@@ -18,25 +18,25 @@ import { cva, type VariantProps } from 'class-variance-authority';
18
18
// TODO: Create a RFC of the variants and explaining the thought process behind them
19
19
20
20
export const buttonVariants = cva (
21
- ' inline-flex items-center justify-center text-sm font-medium rounded disabled:pointer-events- none disabled:opacity-50 focus-visible:ring-ring focus-visible:outline- none focus-visible:ring-1 ' ,
21
+ ' inline-flex items-center justify-center rounded text-sm font-medium focus-visible:outline- none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events- none disabled:opacity-50 ' ,
22
22
{
23
23
variants: {
24
24
look: {
25
25
primary:
26
- ' bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm transition-all duration-100 active:press active:shadow-base border-base ' ,
26
+ ' border-base bg-primary text-primary-foreground shadow-sm transition-all duration-100 hover:bg-primary/90 active:shadow-base active:press ' ,
27
27
secondary:
28
- ' bg-secondary text-secondary-foreground hover:bg-secondary/90 shadow-sm transition-all duration-100 active:press active:shadow-base border-base ' ,
28
+ ' border-base bg-secondary text-secondary-foreground shadow-sm transition-all duration-100 hover:bg-secondary/90 active:shadow-base active:press ' ,
29
29
alert:
30
- ' bg-alert text-alert-foreground hover:bg-alert/90 shadow-sm transition-all duration-100 active:press active:shadow-base border-base ' ,
30
+ ' border-base bg-alert text-alert-foreground shadow-sm transition-all duration-100 hover:bg-alert/90 active:shadow-base active:press ' ,
31
31
outline:
32
- ' shadow-sm transition-all duration-100 active:press active:shadow-base bg-background text-foreground border hover:bg-accent ' ,
32
+ ' border bg-background text-foreground shadow-sm transition-all duration-100 hover:bg-accent active:shadow-base active:press ' ,
33
33
ghost: ' text-accent-foreground hover:bg-accent' ,
34
- link: ' text-foreground hover:underline hover:underline-offset-2 hover:text-foreground/80 hover:bg-transparent ' ,
34
+ link: ' text-foreground hover:bg-transparent hover:text-foreground/80 hover:underline hover:underline-offset-2 ' ,
35
35
},
36
36
size: {
37
- sm: ' px-2 h-8 py-1.5 text-sm' ,
38
- md: ' px-4 h-12 py-3 text-base' ,
39
- lg: ' px-8 h-16 py-4 text-lg' ,
37
+ sm: ' h-8 px-2 py-1.5 text-sm' ,
38
+ md: ' h-12 px-4 py-3 text-base' ,
39
+ lg: ' h-16 px-8 py-4 text-lg' ,
40
40
icon: ' h-10 w-10' ,
41
41
},
42
42
},
0 commit comments