@adaptui/react
Version:
Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit
18 lines (17 loc) • 689 B
TypeScript
import { RefObject } from "react";
import { DateFieldAria } from "@react-aria/datepicker";
import { AriaTimeFieldProps, TimeValue } from "@react-types/datepicker";
import { TimeFieldBaseState } from "./timefield-base-state";
export declare function useTimeFieldState({ state, ...props }: TimeFieldStateProps): TimeFieldState;
export declare type TimeFieldState = DateFieldAria & {
/**
* Reference for the date picker's visible label element, if any.
*/
ref: RefObject<HTMLElement>;
};
export declare type TimeFieldStateProps = AriaTimeFieldProps<TimeValue> & {
/**
* Object returned by the `useTimeFieldBaseState` hook.
*/
state: TimeFieldBaseState;
};