UNPKG

@amsterdam/design-system-react

Version:

All React components from the Amsterdam Design System. Use it to compose pages in your website or application.

27 lines (26 loc) 1.02 kB
/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { HTMLAttributes, PropsWithChildren } from 'react'; import { HintProps } from '../Hint'; export type FieldSetProps = HintProps & PropsWithChildren<HTMLAttributes<HTMLFieldSetElement>> & { /** Whether the field set has an input with a validation error */ invalid?: boolean; /** The text for the caption. */ legend: string; }; /** * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-field-set--docs Field Set docs at Amsterdam Design System} */ export declare const FieldSet: import("react").ForwardRefExoticComponent<{ hint?: string; optional?: boolean; } & HTMLAttributes<HTMLElement> & { children?: import("react").ReactNode | undefined; } & HTMLAttributes<HTMLFieldSetElement> & { /** Whether the field set has an input with a validation error */ invalid?: boolean; /** The text for the caption. */ legend: string; } & import("react").RefAttributes<HTMLFieldSetElement>>;