List
Options
Basic usage
By default, the contents of each list item are arranged in columns.
For rich text (containing em strong a etc), you should wrap the text in a span or div.
Icons
Indent
Supports the global indent options --indent-*, --v-indent-*, --h-indent-*, --no-indent, --no-v-indent, --no-h-indent at all sizes (xxhuge, xhuge, huge, xxlarge, xlarge, large, medium, small, xsmall, xxsmall).
Indent modifiers can also be applied to individual list items.
Gap
Use the global --gap-* and --no-gap modifiers to control the space between list items. Directional modifiers are also supported: --v-gap-*, --h-gap-*, --no-v-gap, and --no-h-gap.
For the default single-column layout, use a vertical gap modifier to change the space between items without changing the horizontal gap.
Drag
Supports the global __drag options.
Basic example
Using html draggable and aria
Styles
Bulleted list
Numbered list
Use --numbered with an ordered list.
The native start attribute is supported for starting numbers from 1 to 40.
Lined
Section
Examples
Drag with switches and buttons
Lined, with sections, radio buttons with tags
Manifest
The component manifest describes this component's API: its modifiers, structure, data attributes, CSS custom properties, accessibility notes, and example markup. It is consumed by tooling such as AI assistants and code generators.
Latest version: https://assets.soracom.io/sds/3.40.1/ds-list/manifest.json?v=3.40.1