ViewSwitchProps
Defined in: packages/react/src/controls.tsx:9
Props of ViewSwitch.
Properties
Section titled “Properties”className?
Section titled “className?”
optionalclassName?:string
Defined in: packages/react/src/controls.tsx:19
Extra class on the group.
label?
Section titled “label?”
optionallabel?:string
Defined in: packages/react/src/controls.tsx:17
The group’s accessible name. Defaults to “View”.
onChange
Section titled “onChange”onChange: (
viewId) =>void
Defined in: packages/react/src/controls.tsx:15
Called with a view’s id when its button is pressed.
Parameters
Section titled “Parameters”viewId
Section titled “viewId”string
Returns
Section titled “Returns”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.