import { ComponentProps } from 'react'; import { CheckboxesItem } from './types'; export type CheckboxesProps = Omit, 'children'> & { /** Shared `name` for all checkboxes; omit per-item only when an option sets `name`. */ name: string; legend: React.ReactNode; /** Uses `govuk-fieldset__legend--l` and wraps the legend in `h1.govuk-fieldset__heading`. */ legendAsPageHeading?: boolean; hint?: React.ReactNode; error?: React.ReactNode; small?: boolean; items: CheckboxesItem[]; fieldsetClassName?: string; /** Prefix for generated hint/error ids; a stable id when you need predictable anchors. */ id?: string; }; export default function Checkboxes({ name: groupName, legend, legendAsPageHeading, hint, error, small, items, className, fieldsetClassName, id: idProp, ...divProps }: CheckboxesProps): import("react/jsx-runtime").JSX.Element;