react-simple-wysiwyg
Version:
Simple and lightweight React WYSIWYG editor
55 lines (54 loc) • 1.31 kB
TypeScript
import { CSSProperties } from 'react';
declare const styles: {
button: {
normal: {
backgroundColor: string;
border: string;
color: string;
height: number;
outline: string;
padding: number;
verticalAlign: string;
width: number;
};
hovered: {
backgroundColor: string;
};
active: {
backgroundColor: string;
};
};
contentEditable: {
flex: number;
outline: string;
padding: number;
};
dropdown: {
boxSizing: any;
height: number;
marginTop: number;
outline: string;
verticalAlign: string;
};
editor: {
border: string;
borderRadius: number;
display: string;
flexDirection: any;
minHeight: number;
};
separator: {
backgroundColor: string;
display: string;
height: number;
margin: number;
verticalAlign: string;
width: number;
};
};
export default styles;
declare type CssCollection<T> = {
[P in keyof T]?: CSSProperties | CssCollection<T[P]>;
};
export declare type IStyles = typeof styles;
export declare type IEditorStyles = CssCollection<IStyles>;