1.0.4 • Published 4 years ago

@swapy.io/swapy-textfield v1.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

@swapy.io/swapy-textfield

Text field component for React js created by Swapy team

NPM JavaScript Style Guide

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=''
          />
        }
      />
    )
  }
}

License

MIT ©

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago