Skip to content

ViewSwitchProps

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

Props of ViewSwitch.

optional className?: string

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

Extra class on the group.


optional label?: string

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

The group’s accessible name. Defaults to “View”.


onChange: (viewId) => void

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

Called with a view’s id when its button is pressed.

string

void


value: string

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

The active view’s id.


views: readonly View[]

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

The views, in button order.