Skip to content

useViews

useViews(__namedParameters): ViewsState

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

The state every view needs whatever it draws: the active view and the selected category, with prop bundles that wire them to Legend and CategoryList. Changing view clears the selection. A view’s own hook adds its layout to this.

UseViewsOptions

ViewsState