pocko-ui
Version:
React components using pure Bootstrap 5+ which does not contain any external style and script libraries.
34 lines (33 loc) • 1.01 kB
TypeScript
import React from "react";
import "./Index.scss";
interface InputProps {
id?: string | number | any;
name?: string | any;
inputRef?: any;
size?: string | number;
label?: string | React.ReactNode;
labelClassName?: string;
wrapperClassName?: string;
controlGroupWrapperClassName?: string;
controlGroupTextClassName?: string;
iconLeft?: React.ReactNode | string;
iconRight?: React.ReactNode | string;
controlClassName?: string;
type?: string;
disabled?: any;
readonly?: any;
required?: any;
requiredLabel?: string | any;
defaultValue?: string | any;
placeholder?: string;
autoComplete?: "on" | "off";
min?: number;
max?: number;
step?: number;
onChange?: (value: string) => void;
onBlur?: () => void;
onFocus?: () => void;
onPressEnter?: Function | any;
}
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<unknown>>;
export default Input;