Knit UI
GitHub

Playground

Loading playground…

false
false
false
Playground
<List
  type="unordered"
  size="md"
  center={false}
  withPadding={false}
  reversed={false}
/>

Examples

Sizes

Seven sizes from xxs to xxl — item text scales accordingly.

Loading example…

SizesSourceStorybook

Ordered Vs Unordered

Unordered list uses bullet markers; ordered list uses auto-incremented numbers.

Loading example…

Ordered Vs UnorderedSourceStorybook

Shadows

The inherited shadow elevation prop, from xs to xl.

Loading example…

ShadowsSourceStorybook

With Icons

A list-level icon replaces the default bullet for every item; a per-item icon overrides only that item.

Loading example…

With IconsSourceStorybook

Spacing

spacing controls the gap between items using Tamagui tokens.

Loading example…

SpacingSourceStorybook

Centered Markers

center aligns the marker vertically with the label — useful for multi-line items or icon markers.

Loading example…

Centered MarkersSourceStorybook

Ordered Start And Reversed

Ordered list with start and reversed — numbering starts at 5 and counts down.

Loading example…

Ordered Start And ReversedSourceStorybook

Nested With Padding

withPadding adds inline-start padding, useful for visually nested sub-lists.

Loading example…

Nested With PaddingSourceStorybook

Styles

Per-slot styles targets individual parts of each item — here the marker and label.

Loading example…

StylesSourceStorybook

Props

PropTypeDefaultDescription
centerboolean | undefinedfalseVertically center each marker with its label.
childrenReactNode`List.Item` children.
disabled systemboolean | undefined
iconReactNodeMarker for every item; overridden by an item's own `icon`.
listStyleTypestring | undefinedCSS `list-style-type` — accepted for Mantine parity and forwarded on web. Markers are rendered explicitly, so this is cosmetic on web and a no-op on native; narrowed locally rather than widened to `any`.
renderMarker((order: number) => ReactNode) | undefinedCustom default marker per item — receives the 1-based item order (after `start`/`reversed` are applied) and returns the marker node. An escape hatch over the built-in bullet/number; an item's own `icon` and the list-level `icon` (when set) still win. Strings/numbers returned render as themed marker text; nodes render as-is.
reversedboolean | undefinedfalseReverse the numbering in an ordered list.
shadow system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
size system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
xxs · xs · sm · md · lg · xl · xxl
'md'Controls item font size and line height.
startnumber | undefined1Starting number for ordered lists.
theme systemThemeName | null | undefinedApplies a theme to this element
type"ordered" | "unordered" | undefined
unordered · ordered
'unordered'Semantic element and default marker style.
Accessibility & DOM props (2)
PropType
keyKey | null | undefined
refRef<TamaguiElement> | undefined

Plus 498 inherited style props from Box — the full Tamagui/React Native style surface, including token shorthands like p, mx, bg and c. See Tokens for the scales they accept, or the full list.