@volverjs/ui-vue
Version:
@volverjs/ui-vue is a lightweight Vue 3 component library to accompany @volverjs/style.
9 lines (8 loc) • 419 B
TypeScript
import type { Option } from '../types/generic';
export declare function useOptions(props: any): {
options: globalThis.Ref<any, any>;
getOptionLabel: <T extends string | Option>(option: T) => string;
getOptionValue: <T extends string | Option>(option: T) => any;
isOptionDisabled: <T extends string | Option>(option: T) => boolean;
getOptionGrouped: <T extends string | Option>(option: T) => T[];
};