Numbered List
as="ol" makes the sequence real, not just visual.
<List as="ol" marker="decimal">
<List.Item>Create your account</List.Item>
<List.Item>Configure your settings</List.Item>
<List.Item>Start building</List.Item>
</List>Stacks items down the page with evenly spaced bullets, numbers, or icons.
import { List } from "@/fragments/ui";Source<List marker="disc">
<List.Item>First item</List.Item>
<List.Item>Second item</List.Item>
<List.Item>Third item</List.Item>
</List>npx @usefragments/cli add listWrites src/fragments/ui/components/List plus what it imports, the globals stylesheet, and .fragments/registry-lock.json, then prints the packages to add. No account, no key.
Your own registry: publish from Fragments Cloud and add --registry org/name. Connect a workspace.
List is a compound: import the root and reach its parts through dot notation.
List.ItemThe default marker — reach for it when order does not matter.
<List marker="disc">
<List.Item>First item</List.Item>
<List.Item>Second item</List.Item>
<List.Item>Third item</List.Item>
</List>as="ol" makes the sequence real, not just visual.
<List as="ol" marker="decimal">
<List.Item>Create your account</List.Item>
<List.Item>Configure your settings</List.Item>
<List.Item>Start building</List.Item>
</List>Each item takes its own icon — checkmarks sell a feature list.
<List marker="icon">
<List.Item icon={<Check weight="bold" color="var(--fui-color-success)" />}>
Unlimited projects
</List.Item>
<List.Item icon={<Check weight="bold" color="var(--fui-color-success)" />}>
Priority supportNo markers, wider gap — the shape for stacked nav links.
<List marker="none" gap="md">
<List.Item>Dashboard</List.Item>
<List.Item>Settings</List.Item>
<List.Item>Profile</List.Item>
</List>Prop | Type | Default | Description |
|---|---|---|---|
childrenRequired | node | Not set | List.Item components |
as | enumulol | ul | List type |
marker | enumnonediscdecimalicon | disc | Marker drawn before each item |
gap | enumnonexssmmdlgxl | sm | Spacing between items |
style | object | Not set | — |