@uva-glass/component-library
Version:
React components UvA
25 lines (24 loc) • 1.26 kB
TypeScript
export interface RteEditorProps {
/** current language setting for the editor labels NOT title ans label */
currentLanguage?: 'NL' | 'EN';
/** imported content to edit */
initialValue?: string;
/** placeholder text in current Language */
placeholder?: string;
/** label/title of the RTE in current Language */
label?: string;
/** explanation of the text to be filled in, in current Language */
info?: string;
/** 'true' the rte field mandatory */
required?: boolean;
/** max number of words 'allowed' but not enforced */
maxWords?: number;
/** max height in rem default = 20rem*/
maxHeightInRem?: `${number}rem`;
/** error text to display if required and field is empty */
notValidatedText?: string;
/** updated output */
onChange: (content: string) => void;
}
export declare const Rte: ({ currentLanguage, initialValue, placeholder, label, info, required, notValidatedText, maxHeightInRem, maxWords, onChange, }: RteEditorProps) => import("react/jsx-runtime").JSX.Element;
export declare const RteEditor: ({ currentLanguage, initialValue, placeholder, label, info, required, notValidatedText, maxWords, onChange, }: RteEditorProps) => import("react/jsx-runtime").JSX.Element;