UNPKG

react-lightning-design-system

Version:

Salesforce Lightning Design System components built with React

34 lines (33 loc) 917 B
import React, { InputHTMLAttributes, Ref, ReactNode } from 'react'; import { FormElementProps } from './FormElement'; /** * */ export type InputProps = { label?: string; required?: boolean; error?: FormElementProps['error']; cols?: number; value?: string; defaultValue?: string; placeholder?: string; bare?: boolean; symbolPattern?: string; readOnly?: boolean; htmlReadOnly?: boolean; iconLeft?: string | JSX.Element; iconRight?: string | JSX.Element; addonLeft?: string; addonRight?: string; tooltip?: ReactNode; tooltipIcon?: string; elementRef?: Ref<HTMLDivElement>; inputRef?: Ref<HTMLInputElement>; onValueChange?: (value: string, prevValue?: string) => void; } & Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue'>; /** * */ export declare const Input: React.FC<InputProps> & { isFormElement: boolean; };