UNPKG

@0xsplits/splits-kit

Version:

UI Components for working with 0xSplits contracts

21 lines (20 loc) 806 B
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; isDisabled?: boolean; hideSelectedValue?: boolean; secondaryDisplay?: (value: number) => JSX.Element; }) => JSX.Element; export default NumberSelectInput;