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

Function SegmentedControlItem

starters/docs/src/SegmentedControl.tsx:22–33  ·  view source on GitHub ↗
(props: ToggleButtonProps)

Source from the content-addressed store, hash-verified

20}
21
22export function SegmentedControlItem(props: ToggleButtonProps) {
23 return (
24 <ToggleButton {...props} className="segmented-control-item">
25 {composeRenderProps(props.children, children => (
26 <>
27 <SelectionIndicator className="react-aria-SelectionIndicator button-base" data-selected />
28 <span>{children}</span>
29 </>
30 ))}
31 </ToggleButton>
32 );
33}

Callers

nothing calls this directly

Calls 1

composeRenderPropsFunction · 0.85

Tested by

no test coverage detected