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

@paprika/input

Package Overview
Dependencies
Maintainers
4
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paprika/input

Input component

  • 0.2.17
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.1K
decreased by-48.16%
Maintainers
4
Weekly downloads
 
Created
Source

Input

Installation

> npm install --save @paprika/input or > yarn add @paprika/input

Usage

The Input can be used as a controlled or an un-controlled component.

To use it as controlled:

import Input from "@paprika/input";
...
const [val, setVal] = React.useState("Hello world");
return (
  <Input
    value={val}
    onChange={e => {
      setVal(e.target.value);
    }}
  />;
);

To use it as an un-controlled component:

import Input from "@paprika/input";
...
return (
  <Input
    defaultValue="Hello world"
    onChange={e => {
      console.log(`The new value is ${e.target.value}`);
    }}
  />
);

FAQs

Package last updated on 06 Mar 2020

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