@swapy.io/swapy-textfield
v1.0.4
Published
Text field component for React js created by Swapy team
Downloads
6
Readme
@swapy.io/swapy-textfield
Text field component for React js created by Swapy team
Install
npm install --save @swapy.io/swapy-textfield
Usage
import React, { Component } from 'react'
import { SwapyTextField } from '@swapy.io/swapy-textfield'
import '@swapy.io/swapy-textfield/dist/index.css'
import email from './email.svg'
class Example extends Component {
render() {
return (
<SwapyTextField
placeholder='Enter a first name'
id='firstname'
onChange={(e) => console.log(e)}
rightIcon={
<img
src={email}
style={{ height: 24, width: 24, marginRight: 12 }}
alt=''
/>
}
/>
)
}
}