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

Function RadioGroup

starters/tailwind/src/RadioGroup.tsx:23–39  ·  view source on GitHub ↗
(props: RadioGroupProps)

Source from the content-addressed store, hash-verified

21}
22
23export function RadioGroup(props: RadioGroupProps) {
24 return (
25 <RACRadioGroup
26 {...props}
27 className={composeTailwindRenderProps(
28 props.className,
29 'group flex flex-col gap-2 font-sans'
30 )}>
31 <Label>{props.label}</Label>
32 <div className="flex group-orientation-vertical:flex-col gap-2 group-orientation-horizontal:gap-4">
33 {props.children}
34 </div>
35 {props.description && <Description>{props.description}</Description>}
36 <FieldError>{props.errorMessage}</FieldError>
37 </RACRadioGroup>
38 );
39}
40
41const styles = tv({
42 extend: focusRing,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected