chop-logic-components
Version:
React UI components library for Chop Logic project
15 lines (14 loc) • 527 B
TypeScript
import { ChopLogicSelectValue } from '../../../models';
export declare function useChopLogicSelectController({ name, defaultValue, onChange, options, }: {
name: string;
defaultValue?: string | number | readonly string[];
onChange?: (value?: ChopLogicSelectValue) => void;
options: ChopLogicSelectValue[];
}): {
selected: ChopLogicSelectValue | undefined;
opened: boolean;
handleClear: () => void;
handleClose: () => void;
handleToggle: () => void;
handleSelect: (id: string) => void;
};