Socket
Socket
Sign inDemoInstall

@mpen/react-basic-inputs

Package Overview
Dependencies
3
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

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
Maintainers
1
Install size
22.3 kB
Created

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

Last updated on 25 May 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc