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

Function Radio

starters/tailwind/src/RadioGroup.tsx:63–81  ·  view source on GitHub ↗
(props: RadioProps)

Source from the content-addressed store, hash-verified

61}
62
63export function Radio(props: RadioProps) {
64 return (
65 <RadioField {...props} className="flex flex-col gap-1 group">
66 <RadioButton
67 className={composeTailwindRenderProps(
68 props.className,
69 'flex relative gap-2 items-center group text-neutral-800 disabled:text-neutral-300 dark:text-neutral-200 dark:disabled:text-neutral-600 forced-colors:disabled:text-[GrayText] text-sm transition [-webkit-tap-highlight-color:transparent]'
70 )}>
71 {composeRenderProps(props.children, (children, renderProps) => (
72 <>
73 <div className={styles(renderProps)} />
74 {children}
75 </>
76 ))}
77 </RadioButton>
78 {props.description && <Description className="ms-6.5">{props.description}</Description>}
79 </RadioField>
80 );
81}

Callers

nothing calls this directly

Calls 2

composeRenderPropsFunction · 0.85

Tested by

no test coverage detected