Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sw-ui-controls

Package Overview
Dependencies
Maintainers
0
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sw-ui-controls

SW UI controls for rapid development

  • 2.2.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
515
decreased by-20.16%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 23 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc