UNPKG

@0xsplits/splits-kit

Version:

UI Components for working with 0xSplits contracts

17 lines (16 loc) 716 B
/// <reference types="react" /> import { Control, FieldValues, Path } from 'react-hook-form'; declare const NumberInput: <FormType extends FieldValues>({ control, inputName, placeholder, decimalScale, minVal, maxVal, suffix, onClearInput, autoFocus, secondaryDisplay, }: { control: Control<FormType>; inputName: Path<FormType>; placeholder: string; decimalScale: number; minVal?: number | undefined; maxVal?: number | undefined; suffix?: string | undefined; token?: string | undefined; onClearInput?: (() => void) | undefined; autoFocus?: boolean | undefined; secondaryDisplay?: ((value: number) => JSX.Element) | undefined; }) => JSX.Element; export default NumberInput;