Skip to content

UseViewsOptions

Defined in: packages/react/src/useViews.ts:6

What useViews takes.

dimensions: readonly Dimension[]

Defined in: packages/react/src/useViews.ts:8

Every dimension the items carry values for.


optional initialViewId?: string

Defined in: packages/react/src/useViews.ts:15

The view shown first. Defaults to the first.


optional unit?: string

Defined in: packages/react/src/useViews.ts:17

What one item is, for lists. Defaults to “items”.


optional views?: readonly View[]

Defined in: packages/react/src/useViews.ts:13

The ways of looking, in switcher order. Defaults to one view per dimension, each driving colour, shape and arrangement from that dimension alone.