We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed0e982 + cab6bbc commit d3ae70bCopy full SHA for d3ae70b
1 file changed
adminforth/documentation/docs/tutorial/03-Customization/15-afcl.md
@@ -41,6 +41,31 @@ import { Button } from '@/afcl'
41
42
loader prop would show loader when it's true.
43
44
+### Variant
45
+
46
+The `variant` prop controls the button style. Possible values are `primary` (default), `secondary` and `danger`.
47
48
+<div class="split-screen" >
49
+ <div >
50
51
+```html
52
+<Button @click="doSmth">
53
+ Primary button
54
+</Button>
55
56
+<Button @click="doSmth" variant="secondary" class="mt-4">
57
+ Secondary button
58
59
60
+<Button @click="doSmth" variant="danger" class="mt-4">
61
+ Danger button
62
63
+```
64
+ </div>
65
+</div>
66
67
+> ☝️ The `mode` prop is deprecated, use `variant` instead.
68
69
## Button Group
70
### With active button
71
<div class="split-screen" >
0 commit comments