Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/radzionc/increaser-timepicker

Time Picker with React
https://github.com/radzionc/increaser-timepicker

react styled-components

Last synced: about 1 month ago
JSON representation

Time Picker with React

Awesome Lists containing this project

README

        

# increaser-timepicker

>

[![NPM](https://img.shields.io/npm/v/increaser-timepicker.svg)](https://www.npmjs.com/package/increaser-timepicker)

![alt text](https://cdn-images-1.medium.com/max/2000/1*rPME-ceW9GySQpv2qSA41A.gif)

## [Demo](https://radzionc.github.io/increaser-timepicker/)

## Install

```bash
npm install --save increaser-timepicker
```

## Usage

```jsx
import React from 'react'

import TimePicker from 'increaser-timepicker'

const Container = ({ children }) => (


{children}

)

// optional
const theme = {
actionColor: 'rgba(231, 76, 60,.9)',
selectColor: '#ecf0f1',
selectTextColor: '#34495e',
circleColor: 'rgba(255, 255, 255, 0.15)'
}

class Example extends React.Component {
constructor(props) {
super(props)
this.state = { duration: 25 }
}

render() {
const { duration } = this.state
return (
console.log('Start!')}
onDurationChange={duration => this.setState({ duration })}
/>
)
}
}
```
## [Blog Post](https://geekrodion.com/blog/timepicker-react)

## License

MIT © [RodionChachura](https://geekrodion.com)