sw-ui-controls

2.1.8 • Public • Published

sw-ui-controls

SW UI controls for rapid development

NPM JavaScript Style Guide

Install

npm install --save sw-ui-controls

Usage

import React, { Component } from 'react'

import { Button, Input } from 'sw-ui-controls'
import 'sw-ui-controls/dist/index.css'
import 'sw-ui-controls/dist/style.css'
const UserForm = () => {
  const [name, setName] = useState('')
  const handleSubmit = () => {}
  return (
    <div>
      <form onSubmit={handleSubmit}>
        <Input
          value={name}
          label='Name'
          onChange={(e) => setName(e.target.value)}
          ref={ref}
          pattern='[a-z]+'
          required
          min={4}
          max={10}
          minLength={5}
          maxLength={10}
          type='password'
        />
        <Button type='submit'>Submit</Button>
      </form>
    </div>
  )
}

Documentation

Package Sidebar

Install

npm i sw-ui-controls

Weekly Downloads

635

Version

2.1.8

License

MIT

Unpacked Size

6.39 MB

Total Files

8

Last publish

Collaborators

  • esachinnpm