@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
14 lines (13 loc) • 696 B
TypeScript
import { DateSegment as DateSegmentState } from "@react-stately/datepicker";
import { As, Options, Props } from "ariakit-utils/types";
import { TimeFieldBaseState } from "./timefield-base-state";
export declare const useTimeSegment: import("ariakit-utils").Hook<TimeSegmentOptions<"div">>;
export declare const TimeSegment: import("ariakit-utils").Component<TimeSegmentOptions<"div">>;
export declare type TimeSegmentOptions<T extends As = "div"> = Options<T> & {
segment: DateSegmentState;
/**
* Object returned by the `useTimeFieldBaseState` hook.
*/
state: TimeFieldBaseState;
};
export declare type TimeSegmentProps<T extends As = "div"> = Props<TimeSegmentOptions<T>>;