UNPKG

@amsterdam/design-system-react

Version:

All React components from the Amsterdam Design System. Use it to compose pages in your website or application.

23 lines (22 loc) 1.09 kB
/** * @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>>; /** * @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. */ 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>>;