UNPKG

@0xsplits/splits-kit

Version:

UI Components for working with 0xSplits contracts

22 lines (21 loc) 888 B
/// <reference types="react" /> import { FieldValues, Control, Path, UseFormSetValue } from 'react-hook-form'; declare const NumberSelectInput: <FormType extends FieldValues>({ control, inputName, defaultVal, options, setValue, placeholder, decimalScale, suffix, minVal, maxVal, isDisabled, hideSelectedValue, secondaryDisplay, }: { control: Control<FormType>; inputName: Path<FormType>; defaultVal: number; options: { value: number; display: (active: boolean) => JSX.Element; }[]; setValue: UseFormSetValue<FormType>; placeholder: string; decimalScale: number; suffix: string; minVal: number; maxVal?: number | undefined; isDisabled?: boolean | undefined; hideSelectedValue?: boolean | undefined; secondaryDisplay?: ((value: number) => JSX.Element) | undefined; }) => JSX.Element; export default NumberSelectInput;