UNPKG

@textbus/xnote

Version:

A high-performance rich text editor that supports multiplayer online collaboration.

17 lines (16 loc) 849 B
import { Component, ComponentStateLiteral, ContentType, Slot, Textbus } from '@textbus/core'; import { ViewComponentProps } from '@textbus/adapter-viewfly'; import { ComponentLoader } from '@textbus/platform-browser'; import './katex.component.scss'; export interface KatexComponentState { text: string; } export declare class KatexComponent extends Component<KatexComponentState> { static componentName: string; static type: ContentType; static fromJSON(textbus: Textbus, state: ComponentStateLiteral<KatexComponentState>): KatexComponent; constructor(textbus: Textbus, state?: KatexComponentState); getSlots(): Slot[]; } export declare function KatexComponentView(props: ViewComponentProps<KatexComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element; export declare const katexComponentLoader: ComponentLoader;