ripple-button-react
v1.0.4
Published
Ripple button react component
Downloads
5
Readme
ripple-button-react
Ripple button react component
Installation
npm install --save ripple-button-react
Usage
import 'babel-polyfill'
import React, { Component } from 'react'
import ReactDOM, { render } from 'react-dom'
import Button from './index'
class App extends Component {
render() {
const { styles } = this.state
return (
<form className="example-container">
<Button type="submit">Submit</Button>
</form>
)
}
}
render(<App />, document.getElementById('app'))
Styling
const styles = {
button: {}, // Button styles
ripple: {}, // Ripple hover styles
title: {} // Button title styles
}
<Button type="submit" style={styles}>Submit</Button>
TODO
- d.ts file