Display · Liststable
List
A bulleted or numbered list built from items data, with one level of nesting. Unordered with dots or check-circle markers, ordered with numbers, in three text sizes.
Preview
#previewChange the options and the code follows. Show code opens the React snippet.
- Add your business details.
- Link a bank account for payouts.
- Upload KYC documents.
- Go live and share your first payment link.
list-example.tsx
import { List } from "@blade-ai/weft/components/list";
<List
items={[
{ content: "Add your business details." },
{ content: "Link a bank account for payouts." },
]}
/>All states
#all-statesUnordered, icon, ordered, nested and the three sizes, from the List artboard.
Props
#propsRead from the component source. Booleans are is-prefixed. A star marks a required prop.
List
Prop
Type
Default
Description
items *
ListItemData[]
—
—
type
"unordered" | "ordered"
"unordered"
"unordered" uses dots; "ordered" numbers each level from 1.
variant
"default" | "icon"
"default"
"icon" swaps the dot for a check-circle marker (unordered only).
size
"small" | "medium" | "large"
"small"
Text 12 / 14 / 16px.
ListItemData
Prop
Type
Default
Description
content *
ReactNode
—
Item content.
children
ListItemData[]
—
Nested items, indented 16px under this one.
Usage
#usageShort rules for choosing and writing list.
Do
Number items only when order matters.
Use at most one nested level.
Use the icon variant for requirements or confirmed points.
Don't
Number items that have no order.
Nest more than one level.
Use a list for a single item.
Accessibility
#accessibilityReal ul, ol and li elements, so screen readers announce "list, 4 items".
ARIA
Element
Role / attribute
When
Unordered list
ul · li
Nested lists sit inside the parent li.
Ordered list
ol · li
Numbering restarts at each level.
Icon markers
aria-hidden="true"
Decorative; add visually hidden text if each icon means something different.