@@ -50,25 +50,14 @@ Fancy larger or smaller buttons? Specify `lg` or `sm` via the `size` prop.
50
50
<!-- b-button-sizes.vue -->
51
51
```
52
52
53
- ### Block level buttons
54
-
55
- Create block level buttons — those that span the full width of a parent — by setting the ` block `
56
- prop.
57
-
58
- ``` html
59
- <div >
60
- <b-button block variant =" primary" >Block Level Button</b-button >
61
- </div >
62
-
63
- <!-- b-button-block.vue -->
64
- ```
65
-
66
53
## Contextual variants
67
54
68
55
Use the ` variant ` prop to generate the various Bootstrap contextual button variants.
69
56
70
57
By default ` <b-button> ` will render with the ` secondary ` variant.
71
58
59
+ The ` variant ` prop adds the Bootstrap V4.3 class ` .btn-<variant> ` on the rendered button.
60
+
72
61
### Solid color variants
73
62
74
63
` primary ` , ` secondary ` , ` success ` , ` danger ` , ` warning ` , ` info ` , ` light ` and ` dark ` .
@@ -124,6 +113,22 @@ padding and size of a button.
124
113
<!-- b-button-link.vue -->
125
114
```
126
115
116
+ ** Tip:** remove the hover underline from a link variant button by adding the Bootstrap V4.3 utility
117
+ class ` text-decoration-none ` to ` <b-button> ` .
118
+
119
+ ## Block level buttons
120
+
121
+ Create block level buttons — those that span the full width of a parent — by setting the ` block `
122
+ prop.
123
+
124
+ ``` html
125
+ <div >
126
+ <b-button block variant =" primary" >Block Level Button</b-button >
127
+ </div >
128
+
129
+ <!-- b-button-block.vue -->
130
+ ```
131
+
127
132
## Pill style
128
133
129
134
<span class =" badge badge-info small " >NEW in 2.0.0-rc.20</span >
@@ -143,10 +148,34 @@ Prefer buttons with a more rounded-pill style? Just set the prop `pill` to true.
143
148
<!-- b-button-pill.vue -->
144
149
```
145
150
151
+ This prop adds the Bootstrap V4.3 utility class ` .rounded-pill ` on the rendered button.
152
+
153
+ ## Squared style
154
+
155
+ <span class =" badge badge-info small " >NEW in 2.0.0-rc.22</span >
156
+
157
+ Prefer buttons with a more square corner style? Just set the prop ` squared ` to true.
158
+
159
+ ``` html
160
+ <div >
161
+ <b-button squared >Button</b-button >
162
+ <b-button squared variant =" primary" >Button</b-button >
163
+ <b-button squared variant =" outline-secondary" >Button</b-button >
164
+ <b-button squared variant =" success" >Button</b-button >
165
+ <b-button squared variant =" outline-danger" >Button</b-button >
166
+ <b-button squared variant =" info" >Button</b-button >
167
+ </div >
168
+
169
+ <!-- b-button-square.vue -->
170
+ ```
171
+
172
+ The ` squared ` prop adds the Bootstrap V4.3 utility class ` .rounded-0 ` on the rendered button. The
173
+ ` pill ` prop takes precedence over the ` squared ` prop.
174
+
146
175
## Disabled state
147
176
148
177
Set the ` disabled ` prop to disable button default functionality. ` disabled ` also works with buttons
149
- rendered as ` <a> ` elements and ` <router-link> ` .
178
+ rendered as ` <a> ` elements and ` <router-link> ` (i.e. with the ` href ` or ` to ` prop set) .
150
179
151
180
``` html
152
181
<div >
0 commit comments