New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@la-components/react-numerical-input

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@la-components/react-numerical-input

NUMERICAL INPUT ======= ## Demo [Numerical Input Demo](https://jsfiddle.net/tuanhn/4pn5d7ek/)

latest
npmnpm
Version
1.0.1
Version published
Maintainers
4
Created
Source

NUMERICAL INPUT

Demo

Numerical Input Demo

Supported formats

[
    "integer": ["all", "positive"]
    "decimal": ["all", "positive", "limited decimal places"]
]

Basic Usage

import React from 'react';
import {Numeric} from '../src/components/numeric';

export class Form extends React.Component {
    constructor(props){
        super(props);        

        this.state = {
            input: -0.123
        }
        this.handleInputChange = this.handleInputChange.bind(this);
    }   

    handleInputChange(data){
        this.setState({input: data.value});
    }

    render() {        
        return (
            <form >
                <Numeric    className={"greenBorder"}
                            format={"decimal"} 
                            positive={true}  
                            decimalPlaces={4} 
                            value={this.state.input} 
                            onChange={this.handleInputChange}/>
            </form>
        );
    }
}

FAQs

Package last updated on 03 Aug 2023

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