1.1.0 • Published 2 years ago

reactjs-atoms v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

PropDescriptionDefault value
readOnlySets readonly
valueSets 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;