MCPcopy Create free account
hub / github.com/adobe/react-spectrum / toggle

Function toggle

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

Source from the content-addressed store, hash-verified

125 state.setSelected(props.id, isSelected);
126 },
127 toggle() {
128 state.toggleKey(props.id);
129 }
130 };
131
132 let {isPressed, isSelected, isDisabled, buttonProps} = useToggleButton(

Callers

nothing calls this directly

Calls 1

toggleKeyMethod · 0.65

Tested by

no test coverage detected