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

15 lines (14 loc) 670 B
import { KeyboardEvent } from "react"; /** * Determine if a character is a DOM floating point character * @see https://www.w3.org/TR/2012/WD-html-markup-20120329/datatypes.html#common.data.float */ export declare function isFloatingPointNumericCharacter(character: string): boolean; export declare const sanitize: (value: string) => string; /** * Determine if the event is a valid numeric keyboard event. * We use this so we can prevent non-number characters in the input */ export declare function isValidNumericKeyboardEvent(event: React.KeyboardEvent): boolean; export declare function getStepFactor(event: KeyboardEvent): number; export * from "./useSpinner";