List
Lists group related content. They can be ordered or unordered.
Lists group related content. They can be ordered or unordered.
Overview
Example
Code
- Great Unordered List
- Ok Unordered List
- Bad Unordered List
- Great Ordered List
- Ok Ordered List
- Bad Ordered List
- Great
- Ok
- Bad
Import
Import the component from @faststore/ui
Import Styles into your FastStore project
To apply the styles of this component in your FastStore project, import the following into your stylesheet:
Follow the instructions in the Importing FastStore UI component styles tutorial.
Usage
- Great Unordered List
- Ok Unordered List
- Bad Unordered List
Props
Name | Type | Description | Default |
---|
Design Tokens
Local token | Default value/Global token linked |
---|---|
--fs-list-style-unordered | initial |
--fs-list-style-ordered | decimal |
Variants
Unordered
Ordered
Without marker
Customization
For further customization, you can use the following data attributes:
data-fs-list
data-fs-list-marker="true"