react-treeselectjs
Version:
Treeselect React Component
16 lines (15 loc) • 949 B
TypeScript
import { PropsWithChildren } from 'react';
import { ValueInputType, ITreeselectParams } from 'treeselectjs';
export { type DirectionType, type IconsType, type OptionType } from 'treeselectjs';
export type TreeselectValue = ValueInputType;
interface TreeselectReactParams extends ITreeselectParams {
onInput?: (value: TreeselectValue) => void;
onOpen?: (value: TreeselectValue) => void;
onClose?: (value: TreeselectValue) => void;
onNameChange?: (name: string) => void;
onSearch?: (value: string) => void;
onOpenCloseGroup?: (groupId: TreeselectValue, isClosed: boolean) => void;
}
export type TreeselectProps = Omit<TreeselectReactParams, 'parentHtmlContainer' | 'listSlotHtmlComponent' | 'inputCallback' | 'openCallback' | 'closeCallback' | 'nameChangeCallback' | 'searchCallback'>;
declare const Treeselect: (props: PropsWithChildren<TreeselectProps>) => import("react/jsx-runtime").JSX.Element;
export default Treeselect;