MCPcopy Index your code
hub / github.com/adobe/react-spectrum / toggle

Function toggle

packages/react-aria/src/button/useToggleButtonGroup.ts:119–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 state.setSelected(props.id, isSelected);
118 },
119 toggle() {
120 state.toggleKey(props.id);
121 }
122 };
123
124 let {isPressed, isSelected, isDisabled, buttonProps} = useToggleButton(

Callers

nothing calls this directly

Calls 1

toggleKeyMethod · 0.65

Tested by

no test coverage detected