List
A component for displaying information in a key-value pair list format.
Usage
The List component display information in a structured format with labels and values.
List Props
List.Root Props
Prop | Type | Default |
---|---|---|
maxWidth | string | number | - |
className | string | - |
List.Header Props
Prop | Type | Default |
---|---|---|
children | ReactNode | - |
className | string | - |
List.Item Props
Prop | Type | Default |
---|---|---|
align | "start" | "center" | "end" | "start" |
children | ReactNode | - |
className | string | - |
List.Label Props
Prop | Type | Default |
---|---|---|
minWidth | string | - |
children | ReactNode | - |
className | string | - |
List.Value Props
Prop | Type | Default |
---|---|---|
children | ReactNode | - |
className | string | - |
Accessibility
The List component implements proper ARIA attributes for accessibility:
- List.Root has
role="list"
andaria-label
- List.Item has
role="listitem"
- List.Header has
role="heading"
andaria-level={3}