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

Function CheckboxGroup

starters/docs/src/CheckboxGroup.tsx:18–34  ·  view source on GitHub ↗
({
  label,
  description,
  errorMessage,
  children,
  orientation = 'vertical',
  ...props
}: CheckboxGroupProps)

Source from the content-addressed store, hash-verified

16}
17
18export function CheckboxGroup({
19 label,
20 description,
21 errorMessage,
22 children,
23 orientation = 'vertical',
24 ...props
25}: CheckboxGroupProps) {
26 return (
27 <AriaCheckboxGroup {...props} data-orientation={orientation}>
28 {label && <Label>{label}</Label>}
29 <div className="checkbox-items">{children}</div>
30 {description && <Description>{description}</Description>}
31 <FieldError>{errorMessage}</FieldError>
32 </AriaCheckboxGroup>
33 );
34}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected