0.1.3 • Published 3 years ago
react-hidden-input v0.1.3
A quick text field component for react applications, inspired by editor js Hope this package will help you very much! (by Mohammed Nayeem)
Installation
npm install react-hidden-input
Usage
<EditableTextView value={"Mohammed Nayeem"} onOk={() => {
//save your data
}} />
API Props
showPlaceholder?: boolean | undefined,
inLine?: boolean | undefined,
absoluteActionBar?: boolean | undefined,
disabled?: boolean | undefined,
wrapperStyle?: React.CSSProperties,
wrapperAttributes?: React.HTMLAttributes<any>,
inputStyle?: React.CSSProperties,
inputAttributes?: React.HTMLAttributes<any>,
actionBarStyle?: React.CSSProperties,
actionBarAttributes?: React.HTMLAttributes<any>,
inputMode?: "success" | "warn" | "error",
defaultColor?: string,
okButton?: React.ReactElement | undefined,
cancelButton?: React.ReactElement | undefined,
placeholder?: string | undefined,
defaultValue?: string | number,
value?: any,
onOk?(value: string | number): any,
onCancel?(): any,