@empoleon/tiptap
Version:
Rich text editor based on tiptap
22 lines (21 loc) • 995 B
TypeScript
import { JSX } from 'solid-js';
import { BoxProps, CompoundStylesApiProps, ElementProps, Factory } from '@empoleon/core';
export type RichTextEditorToolbarStylesNames = 'toolbar';
export interface RichTextEditorToolbarProps extends BoxProps, CompoundStylesApiProps<RichTextEditorToolbarFactory>, ElementProps<'div'> {
/** Determines whether `position: sticky` styles should be added to the toolbar, `false` by default */
sticky?: boolean;
/** Sets top style to offset elements with fixed position, `0` by default */
stickyOffset?: JSX.CSSProperties['top'];
}
export type RichTextEditorToolbarFactory = Factory<{
props: RichTextEditorToolbarProps;
ref: HTMLDivElement;
stylesNames: RichTextEditorToolbarStylesNames;
compound: true;
}>;
export declare const RichTextEditorToolbar: import("@empoleon/core").EmpoleonComponent<{
props: RichTextEditorToolbarProps;
ref: HTMLDivElement;
stylesNames: RichTextEditorToolbarStylesNames;
compound: true;
}>;