You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@mpen/react-basic-inputs

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mpen/react-basic-inputs

Thin wrappers around native input elements to make them behave better.


Version published
Weekly downloads
9
increased by50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@mpen/react-basic-inputs

Thin wrappers around native input elements to make them behave better.

Installation

bun add --dev @mpen/react-basic-inputs
# or
yarn add @mpen/react-basic-inputs
# or
npm install @mpen/react-basic-inputs

Components

Select

Like <select> but takes an options prop instead of children.

  • The values are typed; they can be anything, not just string
  • Duplicate values are OK. e.g. if you want to put "United States" at the top of your country list and then again in alphabetical order, it will just work
  • Each <option> will automatically be assigned a unique React key
  • If the current value cannot be found in the list of options it will be appended to the end
    • If you want to override this behavior, set invalidValueOption
  • placeholder prop

FAQs

Package last updated on 25 May 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc