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

44 lines (43 loc) 2.93 kB
import * as React from "react"; import { ButtonHTMLProps, ButtonOptions } from "reakit"; import { NumberInputStateReturn } from "./index"; export declare type NumberInputDecrementButtonOptions = ButtonOptions & Pick<Partial<NumberInputStateReturn>, "keepWithinRange"> & Pick<NumberInputStateReturn, "focusInput" | "isAtMin" | "spinDown" | "spinStop" | "isDisabled">; export declare type NumberInputDecrementButtonHTMLProps = ButtonHTMLProps; export declare type NumberInputDecrementButtonProps = NumberInputDecrementButtonOptions & NumberInputDecrementButtonHTMLProps; export declare const useNumberInputDecrementButton: { (options?: NumberInputDecrementButtonOptions | undefined, htmlProps?: ButtonHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): ButtonHTMLProps; unstable_propsAreEqual: (prev: import("reakit").RoleOptions & { disabled?: boolean | undefined; focusable?: boolean | undefined; } & { unstable_clickOnEnter?: boolean | undefined; unstable_clickOnSpace?: boolean | undefined; } & Pick<Partial<NumberInputStateReturn>, "keepWithinRange"> & Pick<NumberInputStateReturn, "isDisabled" | "isAtMin" | "focusInput" | "spinDown" | "spinStop"> & React.HTMLAttributes<any> & React.RefAttributes<any> & { wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined; } & { disabled?: boolean | undefined; } & React.ButtonHTMLAttributes<any>, next: import("reakit").RoleOptions & { disabled?: boolean | undefined; focusable?: boolean | undefined; } & { unstable_clickOnEnter?: boolean | undefined; unstable_clickOnSpace?: boolean | undefined; } & Pick<Partial<NumberInputStateReturn>, "keepWithinRange"> & Pick<NumberInputStateReturn, "isDisabled" | "isAtMin" | "focusInput" | "spinDown" | "spinStop"> & React.HTMLAttributes<any> & React.RefAttributes<any> & { wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined; } & { disabled?: boolean | undefined; } & React.ButtonHTMLAttributes<any>) => boolean; __keys: readonly any[]; __useOptions: (options: NumberInputDecrementButtonOptions, htmlProps: ButtonHTMLProps) => NumberInputDecrementButtonOptions; }; export declare const NumberInputDecrementButton: import("../system").Component<"button", import("reakit").RoleOptions & { disabled?: boolean | undefined; focusable?: boolean | undefined; } & { unstable_clickOnEnter?: boolean | undefined; unstable_clickOnSpace?: boolean | undefined; } & Pick<Partial<NumberInputStateReturn>, "keepWithinRange"> & Pick<NumberInputStateReturn, "isDisabled" | "isAtMin" | "focusInput" | "spinDown" | "spinStop"> & React.HTMLAttributes<any> & React.RefAttributes<any> & { wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined; } & { disabled?: boolean | undefined; } & React.ButtonHTMLAttributes<any>>;