UNPKG

@renderlesskit/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

28 lines (27 loc) 1.88 kB
/// <reference types="react" /> import { RoleHTMLProps, RoleOptions } from "reakit"; import { CalendarStateReturn } from "./CalendarState"; export declare const useCalendarHeader: { (options?: CalendarHeaderOptions | undefined, htmlProps?: RoleHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): RoleHTMLProps; unstable_propsAreEqual: (prev: RoleOptions & Pick<CalendarStateReturn, "calendarId" | "currentMonth"> & { format?: Intl.DateTimeFormatOptions | undefined; } & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & { wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined; }, next: RoleOptions & Pick<CalendarStateReturn, "calendarId" | "currentMonth"> & { format?: Intl.DateTimeFormatOptions | undefined; } & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & { wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined; }) => boolean; __keys: readonly any[]; __useOptions: (options: CalendarHeaderOptions, htmlProps: RoleHTMLProps) => CalendarHeaderOptions; }; export declare const CalendarHeader: import("../system").Component<"h2", RoleOptions & Pick<CalendarStateReturn, "calendarId" | "currentMonth"> & { format?: Intl.DateTimeFormatOptions | undefined; } & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & { wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined; }>; export declare type CalendarHeaderOptions = RoleOptions & Pick<CalendarStateReturn, "calendarId" | "currentMonth"> & { format?: Intl.DateTimeFormatOptions; }; export declare type CalendarHeaderHTMLProps = RoleHTMLProps; export declare type CalendarHeaderProps = CalendarHeaderOptions & CalendarHeaderHTMLProps;