@textbus/xnote
Version:
A high-performance rich text editor that supports multiplayer online collaboration.
20 lines (19 loc) • 976 B
TypeScript
import { Component, ComponentStateLiteral, ContentType, Slot, Textbus } from '@textbus/core';
import { ViewComponentProps } from '@textbus/adapter-viewfly';
import { ComponentLoader } from '@textbus/platform-browser';
import './highlight.component.scss';
export interface HighlightBoxComponentState {
type: string;
slot: Slot;
}
export declare class HighlightBoxComponent extends Component<HighlightBoxComponentState> {
static defaultTypes: string[];
static componentName: string;
static type: ContentType;
static fromJSON(textbus: Textbus, json: ComponentStateLiteral<HighlightBoxComponentState>): HighlightBoxComponent;
constructor(textbus: Textbus, state?: HighlightBoxComponentState);
getSlots(): Slot[];
setup(): void;
}
export declare function HighlightBoxView(props: ViewComponentProps<HighlightBoxComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
export declare const highlightBoxComponentLoader: ComponentLoader;