@fremtind/jkl-message-react
Version:
Jøkul react message components
15 lines (14 loc) • 484 B
TypeScript
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>>;