@@ -5,8 +5,8 @@ block canonical
5
5
6
6
block view
7
7
+ callout('List group' , 'https://coreui.io/docs/4.0/components/list-group/' )
8
- .row ( data-masonry = '{"percentPosition": true }' )
9
- .col-sm-12.col-xl-6
8
+ .row
9
+ .col-12
10
10
.card.mb-4
11
11
.card-header
12
12
strong List group
@@ -20,18 +20,16 @@ block view
20
20
li.list-group-item Morbi leo risus
21
21
li.list-group-item Porta ac consectetur ac
22
22
li.list-group-item Vestibulum at eros
23
- .col-sm-12.col-xl-6
23
+ .col-12
24
24
.card.mb-4
25
25
.card-header
26
26
strong List group
27
27
span.small.ms-1 active items
28
28
.card-body
29
29
p.text-medium-emphasis.small
30
- | Attach
31
- |
30
+ | Attach
32
31
code .active
33
- | to a
34
- |
32
+ | to a
35
33
code .list-group-item
36
34
| to show the current active selection.
37
35
+ example()
@@ -41,21 +39,18 @@ block view
41
39
li.list-group-item Morbi leo risus
42
40
li.list-group-item Porta ac consectetur ac
43
41
li.list-group-item Vestibulum at eros
44
- .col-sm-12.col-xl-6
42
+ .col-12
45
43
.card.mb-4
46
44
.card-header
47
45
strong List group
48
46
span.small.ms-1 disabled items
49
47
.card-body
50
48
p.text-medium-emphasis.small
51
- | Attach
52
- |
49
+ | Attach
53
50
code .disabled
54
- | to a
55
- |
51
+ | to a
56
52
code .list-group-item
57
- | to make it appear disabled. Remark that some of the elements with
58
- |
53
+ | to make it appear disabled. Remark that some of the elements with
59
54
code .disabled
60
55
| will also require custom JavaScript to disable their click events (e.g., links).
61
56
+ example()
@@ -65,41 +60,35 @@ block view
65
60
li.list-group-item A third item
66
61
li.list-group-item A fourth item
67
62
li.list-group-item And a fifth one
68
- .col-sm-12.col-xl-6
63
+ .col-12
69
64
.card.mb-4
70
65
.card-header
71
66
strong List group
72
67
span.small.ms-1 disabled links
73
68
.card-body
74
69
.list-group
75
70
p.text-medium-emphasis.small
76
- | Use
77
- |
71
+ | Use
78
72
code
79
73
= ' <a>'
80
- | s or
81
- |
74
+ | s or
82
75
code
83
76
= ' <button>'
84
77
| s to create
85
78
em actionable
86
- | list group items with hover, disabled, and active states by adding
87
- |
79
+ | list group items with hover, disabled, and active states by adding
88
80
code .list-group-item-action
89
- | . We separate these pseudo-classes to ensure list groups made of non-interactive elements (like
90
- |
81
+ | . We separate these pseudo-classes to ensure list groups made of non-interactive elements (like
91
82
code
92
83
= ' <li>'
93
- | s or
94
- |
84
+ | s or
95
85
code
96
86
= ' <div>'
97
87
| s) don’t provide a click or tap affordance.
98
88
p.text-medium-emphasis.small
99
89
| Be sure to
100
90
strong
101
- | not use the standard
102
- |
91
+ | not use the standard
103
92
code .btn
104
93
| classes here
105
94
| .
@@ -110,26 +99,22 @@ block view
110
99
a.list-group-item.list-group-item-action ( href ='#' ) A third link item
111
100
a.list-group-item.list-group-item-action ( href ='#' ) A fourth link item
112
101
a.list-group-item.list-group-item-action.disabled ( href ='#' tabindex ='-1' aria-disabled ='true' ) A disabled link item
113
- .col-sm-12.col-xl-6
102
+ .col-12
114
103
.card.mb-4
115
104
.card-header
116
105
strong List group
117
106
span.small.ms-1 disabled buttons
118
107
.card-body
119
108
.list-group
120
109
p.text-medium-emphasis.small
121
- | With
122
- |
110
+ | With
123
111
code
124
112
= ' <button>'
125
- | s, you can also make use of the
126
- |
113
+ | s, you can also make use of the
127
114
code disabled
128
- | attribute instead of the
129
- |
115
+ | attribute instead of the
130
116
code .disabled
131
- | class. Sadly,
132
- |
117
+ | class. Sadly,
133
118
code
134
119
= ' <a>'
135
120
| s don’t support the disabled attribute.
@@ -141,15 +126,14 @@ block view
141
126
button.list-group-item.list-group-item-action ( type ='button' ) A third button item
142
127
button.list-group-item.list-group-item-action ( type ='button' ) A fourth button item
143
128
button.list-group-item.list-group-item-action ( type ='button' disabled ) A disabled button item
144
- .col-sm-12.col-xl-6
129
+ .col-12
145
130
.card.mb-4
146
131
.card-header
147
132
strong List group
148
133
span.small.ms-1 flush
149
134
.card-body
150
135
p.text-medium-emphasis.small
151
- | Add
152
- |
136
+ | Add
153
137
code .list-group-flush
154
138
| to remove some borders and rounded corners to render list group items edge-to-edge in a parent container (e.g., cards).
155
139
+ example()
@@ -159,28 +143,24 @@ block view
159
143
li.list-group-item A third item
160
144
li.list-group-item A fourth item
161
145
li.list-group-item And a fifth one
162
- .col-sm-12.col-xl-6
146
+ .col-12
163
147
.card.mb-4
164
148
.card-header
165
149
strong List group
166
150
span.small.ms-1 horizontal
167
151
.card-body
168
152
p.text-medium-emphasis.small
169
- | Add
170
- |
153
+ | Add
171
154
code .list-group-horizontal
172
- | to change the layout of list group items from vertical to horizontal across all breakpoints. Alternatively, choose a responsive variant
173
- |
155
+ | to change the layout of list group items from vertical to horizontal across all breakpoints. Alternatively, choose a responsive variant
174
156
code .list-group-horizontal-{sm|md|lg|xl|xxl}
175
- | to make a list group horizontal starting at that breakpoint’s
176
- |
157
+ | to make a list group horizontal starting at that breakpoint’s
177
158
code min-width
178
159
| . Currently
179
160
strong horizontal list groups cannot be combined with flush list groups.
180
161
p.text-medium-emphasis.small
181
162
strong ProTip:
182
- | Want equal-width list group items when horizontal? Add
183
- |
163
+ | Want equal-width list group items when horizontal? Add
184
164
code .flex-fill
185
165
| to each list group item.
186
166
.list-group
@@ -209,7 +189,7 @@ block view
209
189
li.list-group-item An item
210
190
li.list-group-item A second item
211
191
li.list-group-item A third item
212
- .col-sm-12.col-xl-6
192
+ .col-12
213
193
.card.mb-4
214
194
.card-header
215
195
strong List group
@@ -227,21 +207,18 @@ block view
227
207
li.list-group-item.list-group-item-info This is a info list group item
228
208
li.list-group-item.list-group-item-light This is a light list group item
229
209
li.list-group-item.list-group-item-dark This is a dark list group item
230
- .col-sm-12.col-xl-6
210
+ .col-12
231
211
.card.mb-4
232
212
.card-header
233
213
strong List group
234
214
span.small.ms-1
235
- | contextual with
236
- |
215
+ | contextual with
237
216
code .action
238
217
.card-body
239
218
p.text-medium-emphasis.small
240
- | Contextual classes also work with
241
- |
219
+ | Contextual classes also work with
242
220
code .list-group-item-action
243
- | . Note the addition of the hover styles here not present in the previous example. Also supported is the
244
- |
221
+ | . Note the addition of the hover styles here not present in the previous example. Also supported is the
245
222
code .active
246
223
| state; apply it to indicate an active selection on a contextual list group item.
247
224
+ example()
@@ -271,7 +248,7 @@ block view
271
248
a.list-group-item.list-group-item-action.list-group-item-dark ( href ='#' )
272
249
| This is a dark list group
273
250
| item
274
- .col-sm-12.col-xl-6
251
+ .col-12
275
252
.card.mb-4
276
253
.card-header
277
254
strong List group
@@ -292,7 +269,7 @@ block view
292
269
li.list-group-item.d-flex.justify-content-between.align-items-center
293
270
| A third list item
294
271
span.badge.bg-primary.rounded-pill 1
295
- .col-sm-12.col-xl-6
272
+ .col-12
296
273
.card.mb-4
297
274
.card-header
298
275
stron List group
@@ -333,8 +310,7 @@ block view
333
310
span.small.ms-1 tab Javascript plugin
334
311
.card-body
335
312
p.text-medium-emphasis.small
336
- | Use the tab JavaScript plugin—include it individually or through the compiled
337
- |
313
+ | Use the tab JavaScript plugin—include it individually or through the compiled
338
314
code coreui.js
339
315
| file—to extend our list group to create tabbable panes of local content.
340
316
+ example()
0 commit comments