@vtex/admin-ui
Version:
> VTEX admin component library
22 lines (21 loc) • 873 B
TypeScript
import type { ReactNode } from 'react';
import React from 'react';
import type { AbstractInputProps } from '../AbstractInput';
import type { SystemComponentProps } from '../../types';
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
export declare type InputType = 'text' | 'email' | 'url' | 'tel';
export declare type InputOwnProps = Omit<AbstractInputProps, 'maxLength' | 'placeholder' | 'id' | 'type'>;
export interface InputProps extends SystemComponentProps<InputOwnProps> {
/** label text */
label: string;
/** unique id of the component */
id: string;
/** Input helper text */
helperText?: ReactNode;
/** Input char limit */
charLimit?: number;
/** Input error message */
criticalText?: string;
/** Input type */
type?: InputType;
}