mfg-ui-components
Version:
React UI library with reusable components
28 lines (27 loc) • 1.25 kB
TypeScript
import React from "react";
import "./TextFiled.scss";
export type input = "input" | "textarea";
export type type = "text" | "radio" | "checkbox" | "color" | "file" | "date" | "time" | "datetime-local" | "submit" | "button" | "email" | "hidden" | "image" | "number" | "password" | "range" | "search" | "url";
export interface Props {
TextFieldClass?: string;
TextFieldId?: string;
Type: input;
value?: string | number;
name?: string;
PlaceHolder?: string;
LabelName?: string;
SubType?: type;
onClick?: () => void;
onBlur?: () => void;
onFocus?: () => void;
onChange?: (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
defaultValue?: string;
OnkeyDown?: (event: React.KeyboardEvent) => void;
OnkeyUp?: (event: React.KeyboardEvent) => void;
readOnly?: boolean;
Disabled?: boolean;
contentEditable?: boolean;
spellCheck?: boolean;
}
declare function TextField({ TextFieldClass, TextFieldId, Type: Element, value, name, PlaceHolder, LabelName, SubType, onClick, onBlur, onFocus, onChange, defaultValue, OnkeyDown, OnkeyUp, readOnly, Disabled, contentEditable, spellCheck }: Props): import("react/jsx-runtime").JSX.Element;
export default TextField;