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

Function ToggleButton

starters/tailwind/src/ToggleButton.tsx:26–35  ·  view source on GitHub ↗
(props: ToggleButtonProps)

Source from the content-addressed store, hash-verified

24});
25
26export function ToggleButton(props: ToggleButtonProps) {
27 return (
28 <RACToggleButton
29 {...props}
30 className={composeRenderProps(props.className, (className, renderProps) =>
31 styles({...renderProps, className})
32 )}
33 />
34 );
35}

Callers

nothing calls this directly

Calls 1

composeRenderPropsFunction · 0.85

Tested by

no test coverage detected