UNPKG

@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) 819 B
/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { InputHTMLAttributes, PropsWithChildren, ReactNode } from 'react'; export type RadioProps = { /** An icon to display instead of the default icon. */ icon?: ReactNode; /** Whether the value fails a validation rule. */ invalid?: boolean; } & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>; export declare const Radio: import("react").ForwardRefExoticComponent<{ /** An icon to display instead of the default icon. */ icon?: ReactNode; /** Whether the value fails a validation rule. */ invalid?: boolean; } & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & { children?: ReactNode | undefined; } & import("react").RefAttributes<HTMLInputElement>>;