react-simple-wysiwyg
Version:
Simple and lightweight React WYSIWYG editor
11 lines (10 loc) • 446 B
TypeScript
import { HTMLAttributes } from 'react';
import { IEditorContext } from '../Editor';
export declare const BtnStyles: typeof Dropdown;
export declare function Dropdown(props: IDropdownProps): JSX.Element;
export interface IDropdownProps extends HTMLAttributes<HTMLSelectElement>, IEditorContext {
selected?: number;
items?: IDropDownItem[];
}
declare type IDropDownItem = [string, string | ((selection: Node) => void), string?];
export {};