@textbus/editor
Version:
Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.
15 lines (14 loc) • 366 B
TypeScript
import { Keymap } from '@textbus/core';
export interface UIButtonConfig {
iconClasses?: string[];
label?: string;
tooltip?: string;
onClick(): void;
keymap?: Keymap;
}
export interface UIButton {
elementRef: HTMLElement;
disabled: boolean;
highlight: boolean;
}
export declare function createButton(config: UIButtonConfig): UIButton;