Skip to content
THE COMPONENT LIBRARY
Skip to content

Component reference

List

Select entries in an application-owned list.

Preview

Live preview

Changes apply to this preview only.

tokens

Width adapts to the available space

More examples

Different configurations and compositions using the real Pimolu API. Each preview runs independently and follows the site appearance.

Variants and sizes

Enumerated from listVariantMap: plain, divided and bordered; sm, md and lg.

Open preview

Team

A team composition using List.

Open preview

Files

A files composition using List.

Open preview

Usage

Use List for a linear collection; choose Table when columns carry meaningful relationships.

API reference

Generated from the public TypeScript declarations. Native HTML attributes are inherited where the component extends them; this reference includes Pimolu props and selected common native attributes.

PimoluListProps

Type source
PimoluListProps public API
NameTypeDefaultDescription
variant"plain" | "divided" | "bordered" | undefined"divided"Visual treatment. Defaults to "divided".
size"sm" | "md" | "lg" | undefined"md"Row density. Defaults to "md".
childrenRequiredReactNode—Public Pimolu prop; see the source declaration for details.
defaultValuestring | number | readonly string[] | undefined—Standard React/HTML attribute.
classNamestring | undefined—Standard React/HTML attribute.
styleCSSProperties | undefined—Standard React/HTML attribute.
aria-labelstring | undefined—Defines a string value that labels the current element.
onChangeChangeEventHandler<HTMLUListElement, Element> | undefined—Standard React/HTML attribute.
onClickMouseEventHandler<HTMLUListElement> | undefined—Standard React/HTML attribute.
variant

"plain" | "divided" | "bordered" | undefined

Default: "divided"

Visual treatment. Defaults to "divided".

size

"sm" | "md" | "lg" | undefined

Default: "md"

Row density. Defaults to "md".

childrenRequired

ReactNode

No default extracted.

Public Pimolu prop; see the source declaration for details.

defaultValue

string | number | readonly string[] | undefined

No default extracted.

Standard React/HTML attribute.

className

string | undefined

No default extracted.

Standard React/HTML attribute.

style

CSSProperties | undefined

No default extracted.

Standard React/HTML attribute.

aria-label

string | undefined

No default extracted.

Defines a string value that labels the current element.

onChange

ChangeEventHandler<HTMLUListElement, Element> | undefined

No default extracted.

Standard React/HTML attribute.

onClick

MouseEventHandler<HTMLUListElement> | undefined

No default extracted.

Standard React/HTML attribute.

PimoluListItemProps

Type source
PimoluListItemProps public API
NameTypeDefaultDescription
titleReactNode—Public Pimolu prop; see the source declaration for details.
descriptionReactNode—Public Pimolu prop; see the source declaration for details.
startReactNode—Content shown before the main text.
endReactNode—Content shown at the trailing edge.
activeboolean | undefinedfalsePublic Pimolu prop; see the source declaration for details.
disabledboolean | undefinedfalsePublic Pimolu prop; see the source declaration for details.
onClick(() => void) | undefined—Make the row a button.
childrenReactNode—Public Pimolu prop; see the source declaration for details.
onChangeChangeEventHandler<HTMLLIElement, Element> | undefined—Standard React/HTML attribute.
defaultValuestring | number | readonly string[] | undefined—Standard React/HTML attribute.
classNamestring | undefined—Standard React/HTML attribute.
styleCSSProperties | undefined—Standard React/HTML attribute.
aria-labelstring | undefined—Defines a string value that labels the current element.
title

ReactNode

No default extracted.

Public Pimolu prop; see the source declaration for details.

description

ReactNode

No default extracted.

Public Pimolu prop; see the source declaration for details.

start

ReactNode

No default extracted.

Content shown before the main text.

end

ReactNode

No default extracted.

Content shown at the trailing edge.

active

boolean | undefined

Default: false

Public Pimolu prop; see the source declaration for details.

disabled

boolean | undefined

Default: false

Public Pimolu prop; see the source declaration for details.

onClick

(() => void) | undefined

No default extracted.

Make the row a button.

children

ReactNode

No default extracted.

Public Pimolu prop; see the source declaration for details.

onChange

ChangeEventHandler<HTMLLIElement, Element> | undefined

No default extracted.

Standard React/HTML attribute.

defaultValue

string | number | readonly string[] | undefined

No default extracted.

Standard React/HTML attribute.

className

string | undefined

No default extracted.

Standard React/HTML attribute.

style

CSSProperties | undefined

No default extracted.

Standard React/HTML attribute.

aria-label

string | undefined

No default extracted.

Defines a string value that labels the current element.

Accessibility

  • Check the selectable pattern's keyboard model and give each item an understandable name.
Read the accessibility guide →