UNPKG

prp-ui-components

Version:

Package for use components of Pratica Plataforms

18 lines (17 loc) 724 B
import * as React from 'react'; import { ComponentPropsWithRef, HTMLInputTypeAttribute } from 'react'; import { FieldError, FieldErrorsImpl, Merge } from 'react-hook-form'; import './styles.scss'; interface InputProps extends ComponentPropsWithRef<'input'> { name?: string; variant: 'light' | 'dark' | 'light-normal' | 'light-normal-check'; type?: HTMLInputTypeAttribute; readOnly?: boolean; errors?: FieldError | Merge<FieldError, FieldErrorsImpl<any>> | undefined; money?: boolean; percentage?: boolean; icon?: boolean; onValueInput?: () => void; } export declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>; export {};