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

Function RadioGroup

starters/docs/src/RadioGroup.tsx:22–37  ·  view source on GitHub ↗
({
  label,
  description,
  errorMessage,
  children,
  ...props
}: RadioGroupProps)

Source from the content-addressed store, hash-verified

20}
21
22export function RadioGroup({
23 label,
24 description,
25 errorMessage,
26 children,
27 ...props
28}: RadioGroupProps) {
29 return (
30 <AriaRadioGroup {...props}>
31 <Label>{label}</Label>
32 <div className="radio-items">{children}</div>
33 {description && <Description>{description}</Description>}
34 <FieldError>{errorMessage}</FieldError>
35 </AriaRadioGroup>
36 );
37}
38
39export interface RadioProps extends RadioFieldProps {
40 description?: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected