Skip to content

helderfarias/react-materialui-currency

Repository files navigation

react-materialui-currency

Currency TextField for Material-UI

Install

npm install --save react react-dom material-ui react-tap-event-plugin
npm install --save git+https://github.com/helderfarias/react-materialui-currency.git

Using

import React, { Component } from 'react';
import CurrencyField from 'react-materialui-currency';

class Home extends Component {
    
    constructor(props) {
        super(props);
    }
    
    render() {
        return (
            <CurrencyField style={styles.input} 
                            hintText="Name" 
                            underlineShow={false}
                            precision={2}
                            separator=','
                            delimiter='.'
                            unit='R$'
                            onChange={(raw, display) => {
                                this.setState({});
                            }}/>        
        );
    }
    
}

About

Currency TextField for Material-UI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages