package.dist.components.date-picker.use-date-picker.d.cts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react Show documentation
Show all versions of react Show documentation
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
The newest version!
import { PropTypes } from '@zag-js/react';
import { Optional } from '../../types';
import * as datePicker from '@zag-js/date-picker';
export interface UseDatePickerProps extends Optional, 'id'> {
/**
* The initial open state of the date picker when it is first rendered.
* Use when you do not need to control its open state.
*/
defaultOpen?: datePicker.Context['open'];
/**
* The initial value of the date picker when it is first rendered.
* Use when you do not need to control the state of the date picker.
*/
defaultValue?: datePicker.Context['value'];
}
export interface UseDatePickerReturn extends datePicker.Api {
}
export declare const useDatePicker: (props?: UseDatePickerProps) => UseDatePickerReturn;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy