(props: RadioGroupProps)
| 21 | } |
| 22 | |
| 23 | export 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 | |
| 41 | const styles = tv({ |
| 42 | extend: focusRing, |
nothing calls this directly
no test coverage detected