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) 941 B
/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { HTMLAttributes, PropsWithChildren } from 'react'; export type ErrorMessageProps = { /** An icon to display instead of the default icon. */ icon?: Function; /** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */ prefix?: string; } & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>; export declare const ErrorMessage: import("react").ForwardRefExoticComponent<{ /** An icon to display instead of the default icon. */ icon?: Function; /** 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>>;