@uva-glass/component-library
Version:
React components UvA
16 lines (15 loc) • 863 B
TypeScript
import { InputHTMLAttributes } from 'react';
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'style'> {
/** The appearance of the element. Possible values: `error`. */
appearance?: 'error';
/** The type of the input element. */
type?: 'text' | 'search' | 'password' | 'email' | 'file';
/** `true` if the element should render at full width of its container; otherwise, `false`. The default is `false`. */
fullWidth?: boolean;
/** The id of the element. */
id: string;
/** `true` if the element is used for numeric values; otherwise, `false`. The default is `false`. */
isNumeric?: boolean;
}
/** Represents a component for an input element. */
export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;