UNPKG

matrix-react-sdk

Version:
25 lines (24 loc) 633 B
import React from "react"; export declare enum Formatting { Bold = "bold", Italics = "italics", Strikethrough = "strikethrough", Code = "code", Quote = "quote", InsertLink = "insert_link" } interface IProps { shortcuts: Partial<Record<Formatting, string>>; onAction(action: Formatting): void; } interface IState { visible: boolean; } export default class MessageComposerFormatBar extends React.PureComponent<IProps, IState> { private readonly formatBarRef; constructor(props: IProps); render(): React.ReactNode; showAt(selectionRect: DOMRect): void; hide(): void; } export {};