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

Function Radio

starters/docs/src/RadioGroup.tsx:43–57  ·  view source on GitHub ↗
(props: RadioProps)

Source from the content-addressed store, hash-verified

41}
42
43export function Radio(props: RadioProps) {
44 return (
45 <RadioField {...props}>
46 <RadioButton>
47 {composeRenderProps(props.children, children => (
48 <>
49 <div className="indicator" />
50 {children}
51 </>
52 ))}
53 </RadioButton>
54 {props.description && <Description>{props.description}</Description>}
55 </RadioField>
56 );
57}

Callers

nothing calls this directly

Calls 1

composeRenderPropsFunction · 0.85

Tested by

no test coverage detected