UseViewsOptions
Defined in: packages/react/src/useViews.ts:6
What useViews takes.
Properties
Section titled “Properties”dimensions
Section titled “dimensions”dimensions: readonly
Dimension[]
Defined in: packages/react/src/useViews.ts:8
Every dimension the items carry values for.
initialViewId?
Section titled “initialViewId?”
optionalinitialViewId?:string
Defined in: packages/react/src/useViews.ts:15
The view shown first. Defaults to the first.
optionalunit?:string
Defined in: packages/react/src/useViews.ts:17
What one item is, for lists. Defaults to “items”.
views?
Section titled “views?”
optionalviews?: readonlyView[]
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.