Skip to content

Commit cab6bbc

Browse files
committed
fix: add variant desription in documentation
1 parent ed0e982 commit cab6bbc

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

  • adminforth/documentation/docs/tutorial/03-Customization

adminforth/documentation/docs/tutorial/03-Customization/15-afcl.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,31 @@ import { Button } from '@/afcl'
4141

4242
loader prop would show loader when it's true.
4343

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+
</Button>
59+
60+
<Button @click="doSmth" variant="danger" class="mt-4">
61+
Danger button
62+
</Button>
63+
```
64+
</div>
65+
</div>
66+
67+
> ☝️ The `mode` prop is deprecated, use `variant` instead.
68+
4469
## Button Group
4570
### With active button
4671
<div class="split-screen" >

0 commit comments

Comments
 (0)