UNPKG

@textbus/xnote

Version:

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

18 lines (17 loc) 815 B
import { Component, ComponentStateLiteral, ContentType, Slot, Textbus } from '@textbus/core'; import { ViewComponentProps } from '@textbus/adapter-viewfly'; import { ComponentLoader } from '@textbus/platform-browser'; import './image.component.scss'; export interface ImageComponentState { src: string; width?: string; height?: string; } export declare class ImageComponent extends Component<ImageComponentState> { static type: ContentType; static componentName: string; static fromJSON(textbus: Textbus, json: ComponentStateLiteral<ImageComponentState>): ImageComponent; getSlots(): Slot[]; } export declare function ImageView(props: ViewComponentProps<ImageComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element; export declare const imageComponentLoader: ComponentLoader;