UNPKG

prp-ui-components

Version:

Package for use components of Pratica Plataforms

11 lines (10 loc) 537 B
import * as React from 'react'; import { FieldError, FieldErrorsImpl, Merge } from 'react-hook-form'; import './styles.scss'; export interface InputRootProps extends React.ComponentPropsWithRef<'input'> { variant?: 'light' | 'dark' | 'light-normal' | 'light-normal-check'; errors?: FieldError | Merge<FieldError, FieldErrorsImpl<any>> | undefined; children: React.ReactNode; label?: string; } export declare const InputRoot: ({ variant, readOnly, errors, children, label, ...rest }: InputRootProps) => React.JSX.Element;