Coder Social home page Coder Social logo

mzusin / mz-react-input-number Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 4.94 MB

This library is a React component that provides a user-friendly interface for entering numerical values. It accepts various props that can be used to customize its behavior and appearance.

Home Page: https://react-input-number.mzsoft.org/

License: MIT License

JavaScript 22.09% TypeScript 69.47% CSS 1.47% HTML 6.98%
input number react reactjs react-input react-input-field react-components reactjs-components input-field reactjs-library

mz-react-input-number's Introduction

React Input Number ✎﹏﹏﹏﹏

GitHub license GitHub package.json version npm NPM

This library is a React component that provides a user-friendly interface for entering numerical values. It accepts various props that can be used to customize its behavior and appearance.

React Input Number

Features

  • Based on TypeScript.
  • It allows setting minimum and maximum values for numeric inputs, as well as the increment or decrement value for numeric inputs with a step value.
  • It allows configuring the number of decimal places to be displayed for numeric inputs, such as currency or percentage fields.
  • It supports arrow up, arrow down, enter, escape events. Arrow up and down events can be used to increment or decrement the numeric value, enter can be used to validate the input, and escape can be used to cancel the input.
  • Mousewheel support: It allows using the mouse wheel to increment or decrement the numeric value.
  • It supports Home, End, PageUp, and PageDown events. Home and PageUp allows jumping to the start of the input field, while End and PageDown allows jumping to the end of the input field.
  • It allows customizing the appearance of the input field by passing custom CSS classes and styles.
  • It allows using all standard HTML input attributes like disabled, autocomplete, etc., to customize the behavior of the input field.
  • Remove regex
  • Optionally, it allows removing non-numeric characters from the input field using regular expressions, ensuring that the input only contains valid numeric characters.

React Input Number

Documentation 🔖

Getting Started

Callbacks

Other


License

MIT license

It can be used for free in any personal or commercial project 🎁

mz-react-input-number's People

Contributors

mzusin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.