@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
20 lines (19 loc) • 836 B
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { InputHTMLAttributes, PropsWithChildren } from 'react';
export type CheckboxProps = {
/** Allows being neither checked nor unchecked. */
indeterminate?: boolean;
/** Whether the value fails a validation rule. */
invalid?: boolean;
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
export declare const Checkbox: import("react").ForwardRefExoticComponent<{
/** 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>>;