aura-glass
Version:
A comprehensive glassmorphism design system for React applications with 142+ production-ready components
53 lines • 1.44 kB
TypeScript
import React from "react";
export interface GlassRichTextEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
/**
* Editor content (HTML)
*/
value?: string;
/**
* Callback when content changes
*/
onChange?: (html: string) => void;
/**
* Placeholder text
* @default 'Start typing...'
*/
placeholder?: string;
/**
* Whether the editor is read-only
* @default false
*/
readOnly?: boolean;
/**
* Whether the editor is disabled
* @default false
*/
disabled?: boolean;
/**
* Show toolbar
* @default true
*/
showToolbar?: boolean;
/**
* Toolbar tools to show
*/
tools?: ("bold" | "italic" | "underline" | "strike" | "heading" | "quote" | "list" | "orderedList" | "link" | "code" | "clear")[];
/**
* Minimum height of editor
* @default '200px'
*/
minHeight?: string;
/**
* Maximum height of editor (auto-scrolls after)
* @default '400px'
*/
maxHeight?: string;
/**
* Glassmorphism elevation level
* @default 'level2'
*/
elevation?: "level1" | "level2" | "level3" | "level4" | "level5";
}
export declare const GlassRichTextEditor: React.ForwardRefExoticComponent<GlassRichTextEditorProps & React.RefAttributes<HTMLDivElement>>;
export default GlassRichTextEditor;
//# sourceMappingURL=GlassRichTextEditor.d.ts.map