UNPKG

@neuctra/ui

Version:

A modern, responsive, customizable React UI component library powered by Tailwind CSS and Vite.

23 lines (22 loc) 946 B
import { default as React } from 'react'; export interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "defaultValue" | "onChange" | "size" | "type"> { value?: number | null; defaultValue?: number; /** Fired with the parsed number, or null when the field is empty. */ onChange?: (value: number | null) => void; min?: number; max?: number; step?: number; label?: string; error?: string; helperText?: string; size?: "sm" | "md" | "lg"; wrapperClassName?: string; labelClassName?: string; /** The bordered control wrapping the decrement button, input, and increment button. */ inputWrapperClassName?: string; decrementButtonClassName?: string; incrementButtonClassName?: string; helperTextClassName?: string; } export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;