UNPKG

@ark-ui/vue

Version:

A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.

15 lines (14 loc) 655 B
import { PropTypes } from '@zag-js/vue'; import { ComputedRef, MaybeRef } from 'vue'; import { EmitFn, Optional } from '../../types.js'; import { RootEmits } from './date-input.types.js'; import * as dateInput from '@zag-js/date-input'; export interface UseDateInputProps extends Optional<Omit<dateInput.Props, 'dir' | 'getRootNode'>, 'id'> { /** * The v-model value of the date input */ modelValue?: dateInput.Props['value']; } export interface UseDateInputReturn extends ComputedRef<dateInput.Api<PropTypes>> { } export declare const useDateInput: (props?: MaybeRef<UseDateInputProps>, emit?: EmitFn<RootEmits>) => UseDateInputReturn;