npm.io
1.0.5 • Published 4 years ago

bs-atoms-test

Licence
ISC
Version
1.0.5
Deps
35
Size
10 kB
Vulns
45
Weekly
0

React Input Text Component

Installation

npm install --save vt-atoms-one

How To Use

First import this component where you want to use it

import { InputText } from "vt-atoms-one"

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 "vt-atoms-one";

class App extends Component {
  render() {
    return (
        <InputText type='text' id='txtSearch'
            readOnly
            parentClassName='vt-mobile-search-input'
            value={'A'}
            onClick={() => { }}
        />
    );
  }
}

export default App;