UNPKG

carta-md

Version:

A lightweight, fully customizable, Markdown editor

25 lines (24 loc) 594 B
import type { Labels } from '../labels'; import type { Carta } from '../carta'; interface Props { /** * The Carta instance to use. */ carta: Carta; /** * The current editor mode. */ mode: 'tabs' | 'split'; /** * The current tab. */ tab: 'write' | 'preview'; /** * Editor labels. */ labels: Labels; } /** Displays the buttons to switch tabs and the icons to interact with the editor. */ declare const Toolbar: import("svelte").Component<Props, {}, "tab">; type Toolbar = ReturnType<typeof Toolbar>; export default Toolbar;