matrix-react-sdk
Version:
SDK for matrix.org using React
25 lines (24 loc) • 633 B
TypeScript
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 {};