UNPKG

@fremtind/jkl-message-react

Version:
15 lines (14 loc) 484 B
import React from "react"; import { MessageProps } from "./Message"; export interface FormErrorMessageProps { className?: string; id?: string; /** * @default { title: "Feil og mangler i skjemaet" } */ messageProps?: Partial<MessageProps>; errors: (string | undefined)[]; isSubmitted: boolean; isValid: boolean; } export declare const FormErrorMessage: React.ForwardRefExoticComponent<FormErrorMessageProps & React.RefAttributes<HTMLDivElement>>;