UNPKG

@maxpike/vue

Version:

Vue VariantJS: Fully configurable Vue 3 components styled with TailwindCSS

14 lines (11 loc) 548 B
import { Data, WithVariantProps } from '@variantjs/core'; import { InputHTMLAttributes } from 'vue'; import { ObjectWithProperties } from '../helpers'; // eslint-disable-next-line @typescript-eslint/ban-types type TRadioSimpleValue = string | number | boolean | undefined | null | Date | Function | symbol; export type TRadioValue = TRadioSimpleValue | TRadioSimpleValue[] | ObjectWithProperties<TRadioSimpleValue>; export type TRadioOptions = WithVariantProps<{ modelValue?: TRadioValue } & InputHTMLAttributes & { type?: 'radio' } & Data>;