@@ -28,6 +28,7 @@ import {
28
28
29
29
Wrap a series of ` <CButton> ` components in ` <CButtonGroup> ` .
30
30
31
+
31
32
``` jsx preview
32
33
< CButtonGroup role= " group" aria- label= " Basic example" >
33
34
< CButton color= " primary" > Left< / CButton>
@@ -48,7 +49,7 @@ These classes can also be added to groups of links, as an alternative to the `<C
48
49
< CButtonGroup>
49
50
< CButton href= " #" color= " primary" active> Active link< / CButton>
50
51
< CButton href= " #" color= " primary" > Link< / CButton>
51
- < CButton href= " #" color= " primary" > Link< / CButton>
52
+ < CButton href= " #" color= " primary" > Link< / CButton>
52
53
< / CButtonGroup>
53
54
```
54
55
@@ -154,30 +155,30 @@ Join sets of button groups into button toolbars for more complicated components.
154
155
Feel free to combine input groups with button groups in your toolbars. Similar to the example above, you’ll likely need some utilities through to space items correctly.
155
156
156
157
``` jsx preview
157
- < CButtonToolbar className= " mb-3" role= " group" aria- label= " Toolbar with button groups" >
158
- < CButtonGroup className= " me-2" role= " group" aria- label= " First group" >
159
- < CButton color= " secondary" variant= " outline" > 1 < / CButton>
160
- < CButton color= " secondary" variant= " outline" > 2 < / CButton>
161
- < CButton color= " secondary" variant= " outline" > 3 < / CButton>
162
- < CButton color= " secondary" variant= " outline" > 4 < / CButton>
163
- < / CButtonGroup>
164
- < CInputGroup>
165
- < CInputGroupText> @< / CInputGroupText>
166
- < CFormInput placeholder= " Input group example" aria- label= " Input group example" aria- describedby= " btnGroupAddon" / >
167
- < / CInputGroup>
168
- < / CButtonToolbar>
169
- < CButtonToolbar className= " justify-content-between" role= " group" aria- label= " Toolbar with button groups" >
170
- < CButtonGroup className= " me-2" role= " group" aria- label= " First group" >
171
- < CButton color= " secondary" variant= " outline" > 1 < / CButton>
172
- < CButton color= " secondary" variant= " outline" > 2 < / CButton>
173
- < CButton color= " secondary" variant= " outline" > 3 < / CButton>
174
- < CButton color= " secondary" variant= " outline" > 4 < / CButton>
175
- < / CButtonGroup>
176
- < CInputGroup>
177
- < CInputGroupText> @< / CInputGroupText>
178
- < CFormInput placeholder= " Input group example" aria- label= " Input group example" aria- describedby= " btnGroupAddon" / >
179
- < / CInputGroup>
180
- < / CButtonToolbar>
158
+ < CButtonToolbar className= " mb-3" role= " group" aria- label= " Toolbar with button groups" >
159
+ < CButtonGroup className= " me-2" role= " group" aria- label= " First group" >
160
+ < CButton color= " secondary" variant= " outline" > 1 < / CButton>
161
+ < CButton color= " secondary" variant= " outline" > 2 < / CButton>
162
+ < CButton color= " secondary" variant= " outline" > 3 < / CButton>
163
+ < CButton color= " secondary" variant= " outline" > 4 < / CButton>
164
+ < / CButtonGroup>
165
+ < CInputGroup>
166
+ < CInputGroupText> @< / CInputGroupText>
167
+ < CFormInput placeholder= " Input group example" aria- label= " Input group example" aria- describedby= " btnGroupAddon" / >
168
+ < / CInputGroup>
169
+ < / CButtonToolbar>
170
+ < CButtonToolbar className= " justify-content-between" role= " group" aria- label= " Toolbar with button groups" >
171
+ < CButtonGroup className= " me-2" role= " group" aria- label= " First group" >
172
+ < CButton color= " secondary" variant= " outline" > 1 < / CButton>
173
+ < CButton color= " secondary" variant= " outline" > 2 < / CButton>
174
+ < CButton color= " secondary" variant= " outline" > 3 < / CButton>
175
+ < CButton color= " secondary" variant= " outline" > 4 < / CButton>
176
+ < / CButtonGroup>
177
+ < CInputGroup>
178
+ < CInputGroupText> @< / CInputGroupText>
179
+ < CFormInput placeholder= " Input group example" aria- label= " Input group example" aria- describedby= " btnGroupAddon" / >
180
+ < / CInputGroup>
181
+ < / CButtonToolbar>
181
182
```
182
183
183
184
## Sizing
@@ -186,21 +187,21 @@ Alternatively, of implementing button sizing classes to each button in a group,
186
187
187
188
``` jsx preview
188
189
< CButtonGroup size= " lg" role= " group" aria- label= " Large button group" >
189
- < CButton color= " dark " variant= " outline" > Left< / CButton>
190
- < CButton color= " dark " variant= " outline" > Middle< / CButton>
191
- < CButton color= " dark " variant= " outline" > Right< / CButton>
190
+ < CButton color= " primary " variant= " outline" > Left< / CButton>
191
+ < CButton color= " primary " variant= " outline" > Middle< / CButton>
192
+ < CButton color= " primary " variant= " outline" > Right< / CButton>
192
193
< / CButtonGroup>
193
194
< br/ >
194
195
< CButtonGroup role= " group" aria- label= " Default button group" >
195
- < CButton color= " dark " variant= " outline" > Left< / CButton>
196
- < CButton color= " dark " variant= " outline" > Middle< / CButton>
197
- < CButton color= " dark " variant= " outline" > Right< / CButton>
196
+ < CButton color= " primary " variant= " outline" > Left< / CButton>
197
+ < CButton color= " primary " variant= " outline" > Middle< / CButton>
198
+ < CButton color= " primary " variant= " outline" > Right< / CButton>
198
199
< / CButtonGroup>
199
200
< br/ >
200
201
< CButtonGroup size= " sm" role= " group" aria- label= " Small button group" >
201
- < CButton color= " dark " variant= " outline" > Left< / CButton>
202
- < CButton color= " dark " variant= " outline" > Middle< / CButton>
203
- < CButton color= " dark " variant= " outline" > Right< / CButton>
202
+ < CButton color= " primary " variant= " outline" > Left< / CButton>
203
+ < CButton color= " primary " variant= " outline" > Middle< / CButton>
204
+ < CButton color= " primary " variant= " outline" > Right< / CButton>
204
205
< / CButtonGroup>
205
206
```
206
207
@@ -231,13 +232,13 @@ Create a set of buttons that appear vertically stacked rather than horizontally.
231
232
232
233
``` jsx preview
233
234
< CButtonGroup vertical role= " group" aria- label= " Vertical button group" >
234
- < CButton color= " dark " > Button< / CButton>
235
- < CButton color= " dark " > Button< / CButton>
236
- < CButton color= " dark " > Button< / CButton>
237
- < CButton color= " dark " > Button< / CButton>
238
- < CButton color= " dark " > Button< / CButton>
239
- < CButton color= " dark " > Button< / CButton>
240
- < CButton color= " dark " > Button< / CButton>
235
+ < CButton color= " primary " > Button< / CButton>
236
+ < CButton color= " primary " > Button< / CButton>
237
+ < CButton color= " primary " > Button< / CButton>
238
+ < CButton color= " primary " > Button< / CButton>
239
+ < CButton color= " primary " > Button< / CButton>
240
+ < CButton color= " primary " > Button< / CButton>
241
+ < CButton color= " primary " > Button< / CButton>
241
242
< / CButtonGroup>
242
243
```
243
244
0 commit comments