UNPKG

@amsterdam/design-system-react

Version:

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

34 lines (33 loc) 1.28 kB
/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { InputHTMLAttributes, PropsWithChildren } from 'react'; import type { IconProps } from '../Icon'; export type CheckboxProps = { /** * An icon to display instead of the default icon. * @default CheckboxIcon */ icon?: IconProps['svg']; /** Allows being neither checked nor unchecked. */ indeterminate?: boolean; /** Whether the value fails a validation rule. */ invalid?: boolean; } & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>; /** * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-checkbox--docs Checkbox docs at Amsterdam Design System} */ export declare const Checkbox: import("react").ForwardRefExoticComponent<{ /** * An icon to display instead of the default icon. * @default CheckboxIcon */ icon?: IconProps["svg"]; /** Allows being neither checked nor unchecked. */ indeterminate?: boolean; /** Whether the value fails a validation rule. */ invalid?: boolean; } & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLInputElement>>;