|
20 | 20 | <v-button appearance="danger">Danger</v-button>
|
21 | 21 | ```
|
22 | 22 |
|
| 23 | +<div class="p-3 border rounded-2 my-3"> |
| 24 | + <v-button loading appearance="default">Default</v-button> |
| 25 | + <v-button loading appearance="primary">Primary</v-button> |
| 26 | + <v-button loading appearance="alternative">Alternative</v-button> |
| 27 | + <v-button loading appearance="subtle">Alternative</v-button> |
| 28 | + <v-button loading appearance="success">Success</v-button> |
| 29 | + <v-button loading appearance="danger">Danger</v-button> |
| 30 | +</div> |
| 31 | + |
| 32 | +``` html |
| 33 | +<v-button loading appearance="default">Default</v-button> |
| 34 | +``` |
| 35 | + |
| 36 | +<div class="p-3 border rounded-2 my-3"> |
| 37 | + <v-button disabled appearance="default">Default</v-button> |
| 38 | + <v-button disabled appearance="primary">Primary</v-button> |
| 39 | + <v-button disabled appearance="alternative">Alternative</v-button> |
| 40 | + <v-button disabled appearance="subtle">Alternative</v-button> |
| 41 | + <v-button disabled appearance="success">Success</v-button> |
| 42 | + <v-button disabled appearance="danger">Danger</v-button> |
| 43 | +</div> |
| 44 | + |
| 45 | +``` html |
| 46 | +<v-button disabled appearance="default">Default</v-button> |
| 47 | +``` |
| 48 | + |
| 49 | +<div class="p-3 border rounded-2 my-3"> |
| 50 | + <v-button icon-first appearance="default"> |
| 51 | + <svg slot="icon" viewBox="0 0 24 24" width="20" height="20"><g fill="currentColor" fill-rule="nonzero"><path d="M7.723 4.552A1 1 0 0 1 8.617 4h6.764a1 1 0 0 1 .895.554L16.997 6H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2.997l.726-1.448zM12 17a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM6 8a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path><path d="M12 16a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"></path></g> |
| 52 | + </svg> |
| 53 | + Default |
| 54 | + </v-button> |
| 55 | + <v-button appearance="primary"> |
| 56 | + Primary |
| 57 | + <svg slot="icon" viewBox="0 0 24 24" width="20" height="20"><g fill="currentColor" fill-rule="nonzero"><path d="M7.723 4.552A1 1 0 0 1 8.617 4h6.764a1 1 0 0 1 .895.554L16.997 6H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2.997l.726-1.448zM12 17a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM6 8a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path><path d="M12 16a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"></path></g> |
| 58 | + </svg> |
| 59 | + </v-button> |
| 60 | +</div> |
| 61 | + |
| 62 | +``` html |
| 63 | +<v-button disabled appearance="default">Default</v-button> |
| 64 | +``` |
| 65 | + |
23 | 66 | ## Props
|
24 | 67 | Name | Type | Description | Default
|
25 | 68 | ---------- | -------- | ----------- | -----
|
26 | 69 | type | String | Button type, 'button' or 'submit' | button
|
27 | 70 | appearance | String | There are 6 options: ['default', 'primary', 'alternative', 'subtle', 'success', 'danger'] | <code>default</code>
|
28 | 71 | disabled | Boolean | Whether button disabled or not | false
|
29 |
| -loading | Boolean | Whether button in loading state or not | false |
| 72 | +loading | Boolean | Whether button in loading state or not | false |
| 73 | +icon-first | Boolean | Set to `true` if you want to render icon before text |
30 | 74 |
|
31 | 75 | ## Slots
|
32 | 76 | Name | Slot props | Description
|
|
0 commit comments