oui-kit
Version:
🎯 *UI toolkit with a French touch* 🇫🇷
46 lines (45 loc) • 1.59 kB
TypeScript
import { OuiSelectItem } from './_types';
type __VLS_Props = {
/** Title for form item wrapper */
title?: string;
description?: string;
required?: boolean;
/** Available items to choose from */
items?: (OuiSelectItem | string)[];
/** Placeholder for the combobox input */
placeholder?: string;
disabled?: boolean;
/** Allow creating new items via callback. Return the new item's id. */
addItemAction?: (title: string) => any;
/** Label for the "add item" entry in the dropdown */
addItemTitle?: string;
};
type __VLS_PublicProps = {
modelValue?: string[];
} & __VLS_Props;
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
item?(_: {
item: OuiSelectItem;
}): any;
};
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (value: string[]) => any;
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
}>, {
placeholder: string;
disabled: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};