UNPKG

@nlabs/gothamjs

Version:
22 lines (21 loc) 1.09 kB
import type { InputHTMLAttributes, TextareaHTMLAttributes } from 'react'; import type { GothamColor } from '../../utils/colorUtils.js'; export type InputBorderType = 'solid' | 'rounded' | 'none' | 'underline'; export interface InputFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement>, 'className'> { readonly borderColor?: GothamColor; readonly borderType?: InputBorderType; readonly className?: string; readonly id?: string; readonly label?: string; readonly multiline?: boolean; readonly placeholderColor?: GothamColor; readonly textColor?: GothamColor; } export declare const baseClasses: { none: string; rounded: string; solid: string; underline: string; }; export declare const getInputBorderClass: (borderType: InputBorderType, borderColor: GothamColor, textColor: GothamColor, placeholderColor: GothamColor) => string; export declare const InputField: import("react").ForwardRefExoticComponent<InputFieldProps & import("react").RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;