1.1.0 • Published 2 years ago
reactjs-atoms v1.1.0
React Input Text Component
Create and deploy component into NPM
In this project created BackArrow, Button, InputText components and deployed into npm.
- npm install
- npm login
- npm run build
- npm publish
You can use components from npm or create .tgz file using "npm pack" command.
Installation
npm install --save reactjs-atoms
How To Use
First import this component where you want to use it
import { InputText } from "reactjs-atoms"
Then just renders it
<InputText />
Props
Prop | Description | Default value |
---|---|---|
readOnly | Sets readonly | |
value | Sets value |
Example
import React, { Component } from "react";
import { InputText } from "reactjs-atoms";
class App extends Component {
render() {
return (
<InputText type='text' id='txtSearch'
readOnly
parentClassName='vt-mobile-search-input'
value={'A'}
onClick={() => { }}
/>
);
}
}
export default App;