Lists | ListGroup
ListGroup#
Description#
- Container for a list of
ListRow: draws the border, the surface and the dividers between rows. - With
dividedset tofalse, rows sit flush with their own radius and 4 px padding, with no lines, like menu options. - By default it is only a visual container; with
role="listbox"it becomes a list of options andlabelnames it.
Props#
divided(boolean) — Separates rows withui-line-weaklines. Defaults to:true.role('listbox' | 'group') — ARIA role of the container. No default value.label(string) — The name of the list, already translated.multiselectable(boolean) — For a multi-selectionlistbox. Defaults to:false.
Usage#
| |
Notes#
- Provides context to child
ListRowcomponents throughLIST_GROUP_KEY. labelis used asaria-labeland must already be translated.