UNPKG

@maxpike/vue

Version:

Vue VariantJS: Fully configurable Vue 3 components styled with TailwindCSS

18 lines (15 loc) 646 B
import { Data, InputOptions, NormalizedOption, NormalizedOptions, WithVariantProps, } from '@variantjs/core'; import { SelectHTMLAttributes } from 'vue'; import { Truthy } from '../misc'; // eslint-disable-next-line @typescript-eslint/ban-types export type TSelectValue = string | number | boolean | undefined | null | Date | Function | symbol | TSelectValue[]; export type TSelectOptions = WithVariantProps<{ modelValue?: TSelectValue, options?: InputOptions | NormalizedOption[] | NormalizedOptions, multiple?: Truthy, normalizeOptions?: boolean, valueAttribute?: string textAttribute?: string } & SelectHTMLAttributes & Data>;