List Group (list_group
)
List groups are a flexible and powerful component for displaying a series of content. Modify and extend them to support just about any content within.
🔗 External documentation.
ID | Label | Description | Schema |
---|---|---|---|
items | Items | A list of List Group Items patterns. |
id: list_group
label: 'List Group'
description: 'List groups are a flexible and powerful component for displaying a series of content. Modify and extend them to support just about any content within.'
group: 'List group'
homepage: 'https://getbootstrap.com/docs/5.3/components/list-group/'
variants:
default:
id: default
label: Default
description: 'The most basic list group is an unordered list with list items and the proper classes. Build upon it with the options that follow, or with your own CSS as needed.'
flush:
id: flush
label: Flush
description: 'Add .list-group-flush to remove some borders and rounded corners to render list group items edge-to-edge in a parent container (e.g., cards).'
numbered:
id: numbered
label: Numbered
description: 'Add the .list-group-numbered modifier class (and optionally use an <ol> element) to opt into numbered list group items.'
horizontal:
id: horizontal
label: Horizontal
description: 'Add .list-group-horizontal to change the layout of list group items from vertical to horizontal across all breakpoints. Currently horizontal list groups cannot be combined with flush list groups.'
horizontal_sm:
id: horizontal_sm
label: 'Horizontal Small'
description: 'Horizontal starts at breakpoint small.'
horizontal_md:
id: horizontal_md
label: 'Horizontal Medium'
description: 'Horizontal starts at breakpoint medium.'
horizontal_lg:
id: horizontal_lg
label: 'Horizontal Large'
description: 'Horizontal starts at breakpoint large.'
horizontal_xl:
id: horizontal_xl
label: 'Horizontal Extra large'
description: 'Horizontal starts at breakpoint extra large.'
horizontal_xxl:
id: horizontal_xxl
label: 'Horizontal Extra extra large'
description: 'Horizontal starts at breakpoint extra extra large.'
numbered__horizontal:
id: numbered__horizontal
label: 'Numbered Horizontal'
description: 'Add the .list-group-numbered modifier class (and optionally use an <ol> element) to opt into numbered list group items. Add .list-group-horizontal to change the layout of list group items from vertical to horizontal across all breakpoints. Currently horizontal list groups cannot be combined with flush list groups.'
numbered__horizontal_sm:
id: numbered__horizontal_sm
label: 'Numbered Horizontal Small'
description: 'Horizontal starts at breakpoint small.'
numbered__horizontal_md:
id: numbered__horizontal_md
label: 'Numbered Horizontal Medium'
description: 'Horizontal starts at breakpoint medium.'
numbered__horizontal_lg:
id: numbered__horizontal_lg
label: 'Numbered Horizontal Large'
description: 'Horizontal starts at breakpoint large.'
numbered__horizontal_xl:
id: numbered__horizontal_xl
label: 'Numbered Horizontal Extra large'
description: 'Horizontal starts at breakpoint extra large.'
numbered__horizontal_xxl:
id: numbered__horizontal_xxl
label: 'Numbered Horizontal Extra extra large'
description: 'Horizontal starts at breakpoint extra extra large.'
slots:
items:
id: items
label: Items
description: 'A list of List Group Items patterns.'
examples:
preview:
id: preview
label: Preview
renderable:
'@component': list_group
items:
-
'@component': list_group_item
content: 'The current link item'
active: true
-
'@component': list_group_item
content: 'A second link item'
-
'@component': list_group_item
content: 'A third link item'
-
'@component': list_group_item
content: 'A fourth link item, with a link'
url: 'https://example.com'
-
'@component': list_group_item
content: 'The disabled link item'
disabled: true
Default
(
default
)
The most basic list group is an unordered list with list items and the proper classes. Build upon it with the options that follow, or with your own CSS as needed.
Flush
(
flush
)
Add .list-group-flush to remove some borders and rounded corners to render list group items edge-to-edge in a parent container (e.g., cards).
Numbered
(
numbered
)
Add the .list-group-numbered modifier class (and optionally use an <ol> element) to opt into numbered list group items.
Horizontal
(
horizontal
)
Add .list-group-horizontal to change the layout of list group items from vertical to horizontal across all breakpoints. Currently horizontal list groups cannot be combined with flush list groups.
Horizontal Small
(
horizontal_sm
)
Horizontal starts at breakpoint small.
Horizontal Medium
(
horizontal_md
)
Horizontal starts at breakpoint medium.
Horizontal Large
(
horizontal_lg
)
Horizontal starts at breakpoint large.
Horizontal Extra large
(
horizontal_xl
)
Horizontal starts at breakpoint extra large.
Horizontal Extra extra large
(
horizontal_xxl
)
Horizontal starts at breakpoint extra extra large.
Numbered Horizontal
(
numbered__horizontal
)
Add the .list-group-numbered modifier class (and optionally use an <ol> element) to opt into numbered list group items. Add .list-group-horizontal to change the layout of list group items from vertical to horizontal across all breakpoints. Currently horizontal list groups cannot be combined with flush list groups.
Numbered Horizontal Small
(
numbered__horizontal_sm
)
Horizontal starts at breakpoint small.
Numbered Horizontal Medium
(
numbered__horizontal_md
)
Horizontal starts at breakpoint medium.
Numbered Horizontal Large
(
numbered__horizontal_lg
)
Horizontal starts at breakpoint large.
Numbered Horizontal Extra large
(
numbered__horizontal_xl
)
Horizontal starts at breakpoint extra large.
Numbered Horizontal Extra extra large
(
numbered__horizontal_xxl
)
Horizontal starts at breakpoint extra extra large.