@atlaskit/editor-plugin-floating-toolbar
Version:
Floating toolbar plugin for @atlaskit/editor-core
21 lines (20 loc) • 786 B
TypeScript
import React from 'react';
import type { SelectOption } from '@atlaskit/editor-common/types';
import type { ValueType } from '@atlaskit/select';
export interface Props {
ariaLabel?: string;
boundariesElement?: HTMLElement;
classNamePrefix?: string;
defaultValue?: SelectOption | null;
dispatchCommand: (command: Function) => void;
filterOption?: ((option: SelectOption, rawInput: string) => boolean) | null;
hideExpandIcon?: boolean;
mountPoint?: HTMLElement;
onChange?: (change: ValueType<SelectOption>) => void;
options: SelectOption[];
placeholder?: string;
scrollableElement?: HTMLElement;
setDisableParentScroll?: (disable: boolean) => void;
width?: number;
}
export default function Search(props: Props): React.JSX.Element;