@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
30 lines (29 loc) • 1.23 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { HTMLAttributes, PropsWithChildren } from 'react';
import type { IconProps } from '../Icon';
export type ErrorMessageProps = {
/**
* An icon to display instead of the default icon.
* @default WarningIcon
*/
icon?: IconProps['svg'];
/** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */
prefix?: string;
} & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>;
/**
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-error-message--docs Error Message docs at Amsterdam Design System}
*/
export declare const ErrorMessage: import("react").ForwardRefExoticComponent<{
/**
* An icon to display instead of the default icon.
* @default WarningIcon
*/
icon?: IconProps["svg"];
/** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */
prefix?: string;
} & HTMLAttributes<HTMLParagraphElement> & {
children?: import("react").ReactNode | undefined;
} & import("react").RefAttributes<HTMLParagraphElement>>;