@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
29 lines (28 loc) • 1.05 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { InputHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
export type RadioProps = PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>> & {
/**
* An icon to display instead of the default icon.
* @default RadioIcon
*/
icon?: Function | ReactNode;
/** Whether the value fails a validation rule. */
invalid?: boolean;
};
/**
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-radio--docs Radio docs at Amsterdam Design System}
*/
export declare const Radio: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
children?: ReactNode | undefined;
} & {
/**
* An icon to display instead of the default icon.
* @default RadioIcon
*/
icon?: Function | ReactNode;
/** Whether the value fails a validation rule. */
invalid?: boolean;
} & import("react").RefAttributes<HTMLInputElement>>;