Overview
Minimal list component for laying out a group of items. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
Install via NPM
npm install @bolt/components-list
Usage
Schema
Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case
.
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
|
A Drupal-style attributes object with extra attributes to append to this component. |
object
| — |
|
|
All items can be simple text or |
array
| — | |
|
Apply the semantic tag for the list. |
string
|
ul
|
|
|
Display either an inline list of items or a block (stacked) list of items. Responsive options are also available for transforming from block to inline at specific breakpoints. |
string
|
block
|
|
|
Control the spacing in between items. |
string
|
xsmall
|
|
|
Display a separator in between items. |
string
|
none
|
|
|
Turn spacing to the inside of each item. |
boolean
|
false
|
|
|
Control the horizontal alignment of items. |
string
|
start
|
|
|
Control the vertical alignment of items. |
string
|
center
|
|