Skip to main content
The List component provides a composable structure for displaying key-value pairs, metadata, and structured information with consistent styling.

Basic usage

With header

Add a header to group related information.

Multiple sections

Organize information into multiple sections with headers.

With max width

Control the maximum width of the list.

Label width

Set minimum width for labels to align values.

Complex values

Values can contain any React elements.

Custom styling

Apply custom classes and styles to list elements.

Metadata display

Perfect for displaying resource metadata.

Inline editing

Combine with form inputs for inline editing.

Accessibility

The List component includes proper ARIA attributes.

API reference

List (root)

ReactNode
required
List content, typically List.Header and List.Item elements.
string | number
Maximum width of the list container.
string
Additional CSS classes to apply.
string
Accessible label for the list.

List.Header

ReactNode
required
Header content, typically text.
string
Additional CSS classes to apply.

List.Item

ReactNode
required
Item content, typically List.Label and List.Value.
string
Additional CSS classes to apply.

List.Label

ReactNode
required
Label content.
string
Minimum width for the label element.
string
Additional CSS classes to apply.
React.CSSProperties
Inline styles to apply.

List.Value

ReactNode
required
Value content.
string
Additional CSS classes to apply.