Socket
Socket
Sign inDemoInstall

@paprika/input

Package Overview
Dependencies
Maintainers
3
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paprika/input

Input component


Version published
Maintainers
3
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 19 Dec 2019

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