Documentation
Feedback
Guides
Storefront Development

Storefront Development
Storefront development

List

Lists group-related content. They can be ordered or unordered.

The List component groups related content in an organized manner, supporting both ordered and unordered formats. Typical use cases include:
  • Displaying product features or specifications.
  • Listing store benefits or policies (e.g., Free shipping, Easy returns, Secure checkout).
Example
Code
  • First item unordered list
  • Second item unordered list
  • Third item unordered list
  1. First item ordered list
  2. Second item ordered list
  3. Third item ordered list
  • First item
  • Second item
  • Third item

Usage

Import the component


_10
import { List } from '@faststore/ui'

Import styles

To apply styles, include the following in your stylesheet:

_10
@import '@faststore/ui/src/components/atoms/List/styles.scss';


Examples

Unordered list

Example
Code
  • First item unordered list
  • Second item unordered list
  • Third item unordered list

Ordered list

Example
Code
  1. First item ordered list
  2. Second item ordered list
  3. Third item ordered list

Unordered list without marker

Example
Code
  • First item
  • Second item
  • Third item

Ordered list without marker

Example
Code
  1. First item
  2. Second item
  3. Third item

Design tokens

Local tokenDefault value/Global token linked
--fs-list-style-unorderedinitial
--fs-list-style-ordereddecimal

Data attributes

You can target and override List styles using the following data attributes:
data-fs-list
data-fs-list-marker="true"

Props

NameTypeDescriptionDefault
Contributors
3
Photo of the contributor
Photo of the contributor
Photo of the contributor
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
3
Photo of the contributor
Photo of the contributor
Photo of the contributor
Was this helpful?
Suggest edits (GitHub)
On this page