@textbus/editor
Version:
Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.
11 lines (10 loc) • 313 B
TypeScript
import { VElement } from '@textbus/core';
export interface SelectOption {
label: string;
value: any;
}
export interface SelectConfig {
items: SelectOption[];
defaultValue: any;
}
export declare function useSelector(config: SelectConfig, callback: (current: SelectOption) => void): () => VElement;