Skip to content

CategoryListProps

Defined in: packages/react/src/controls.tsx:166

Props of CategoryList. useViews’s listProps(group) supplies most of them.

optional className?: string

Defined in: packages/react/src/controls.tsx:174

Extra class on the outer element.


group: LegendGroup

Defined in: packages/react/src/controls.tsx:168

One dimension’s legend, from layout.legends.


optional linkLabel?: string

Defined in: packages/react/src/controls.tsx:179

Text for each category’s link, when it has an href. Defaults to “Explore”.


optional onSelect?: (selection) => void

Defined in: packages/react/src/controls.tsx:172

Called with a category of this group, or null to clear; makes each entry a toggle.

Selection | null

void


optional selected?: Selection | null

Defined in: packages/react/src/controls.tsx:170

The current selection, from useViews.


optional unit?: string

Defined in: packages/react/src/controls.tsx:177

What one item is, e.g. “sets”. Defaults to “items”.