File tree Expand file tree Collapse file tree 2 files changed +30
-11
lines changed
apps/website/src/routes/docs/headless/(components)/button
packages/kit-fluffy/src/components/button Expand file tree Collapse file tree 2 files changed +30
-11
lines changed Original file line number Diff line number Diff line change 1- import { $ , component$ , useStyles$ } from '@builder.io/qwik' ;
1+ import { component$ , useStyles$ } from '@builder.io/qwik' ;
22import { Button } from '@qwik-ui/primitives' ;
33import styles from './index.css?inline' ;
44
55export default component$ ( ( ) => {
66 useStyles$ ( styles ) ;
77
88 return (
9- < div class = "flex flex-col gap-8 mt-4 " >
9+ < div class = "mt-4 flex flex-col gap-8" >
1010 < h2 > This is the documentation for the Button</ h2 >
11- < div class = "flex flex-col gap-8 mt-4 " >
11+ < div class = "mt-4 flex flex-col gap-8" >
1212 < div >
1313 < h2 > Basic Example</ h2 >
1414 < Button > SIMPLE BUTTON</ Button >
@@ -29,7 +29,7 @@ export default component$(() => {
2929
3030 < div >
3131 < h2 > Events</ h2 >
32- < Button onClick$ = { $ ( ( ) => window . alert ( 'hello' ) ) } > SHOW ALERT</ Button >
32+ < Button onClick$ = { ( ) => window . alert ( 'hello' ) } > SHOW ALERT</ Button >
3333 </ div >
3434 </ div >
3535 </ div >
Original file line number Diff line number Diff line change 2121 * INTENT
2222 * Primary
2323 * Secondary
24- * Danger / Destructive
24+ * Accent
25+ * Danger / Destructive / Error
26+ * Success
27+ * Warning
28+ * Info
29+
30+ STATE:
31+ * Active
32+ * Disabled
33+
2534 * LOOK
2635 * Outline
2736 * Ghost
2837 * Link
29-
30- * STATE
31- * Active
32- * Disabled
38+
39+
3340
3441 DOCS EXAMPLES:
3542 * with Icon
@@ -55,14 +62,25 @@ export const buttonVariants = cva(
5562 intent : {
5663 primary : 'bg-primary text-primary-foreground hover:bg-primary/90' ,
5764 secondary : 'bg-secondary text-secondary-foreground hover:bg-secondary/80' ,
58- destructive : 'bg-destructive text-destructive-foreground hover:bg-destructive/90' ,
59- link : 'text-primary underline-offset-4 hover:underline' ,
65+ danger : 'bg-destructive text-destructive-foreground hover:bg-destructive/90' ,
6066 } ,
6167 look : {
68+ link : 'text-primary underline-offset-4 hover:underline' ,
6269 ghost : 'hover:bg-accent hover:text-accent-foreground' ,
6370 outline :
6471 'border border-input bg-background hover:bg-accent hover:text-accent-foreground' ,
6572 } ,
73+ shape : {
74+ rounded : '' ,
75+ circular : '' ,
76+ square : '' ,
77+ } ,
78+ state : {
79+ enabled : '' ,
80+ active : '' ,
81+ disabled : '' ,
82+ } ,
83+ animation : { } ,
6684 size : {
6785 default : 'h-10 px-4 py-2' ,
6886 sm : 'h-9 rounded-md px-3' ,
@@ -71,6 +89,7 @@ export const buttonVariants = cva(
7189 } ,
7290 } ,
7391 defaultVariants : {
92+ state : 'enabled' ,
7493 intent : 'primary' ,
7594 size : 'default' ,
7695 } ,
You can’t perform that action at this time.
0 commit comments