UNPKG

@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) 733 B
import { As, Options, Props } from "ariakit-utils/types"; import { PaginationState } from "./pagination-state"; export declare const usePaginationButton: import("ariakit-utils").Hook<PaginationButtonOptions<"button">>; export declare const PaginationButton: import("ariakit-utils").Component<PaginationButtonOptions<"button">>; export declare type Goto = "nextPage" | "prevPage" | "lastPage" | "firstPage" | number; export declare type PaginationButtonOptions<T extends As = "button"> = Options<T> & { /** * Object returned by the `usePaginationButtonState` hook. */ state?: PaginationState; goto: Goto; }; export declare type PaginationButtonProps<T extends As = "button"> = Props<PaginationButtonOptions<T>>;