# react-gradient-timepicker

> React Timepicker

Latest version **0.0.3** (published 2016-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-gradient-timepicker
pnpm add react-gradient-timepicker
yarn add react-gradient-timepicker
bun add react-gradient-timepicker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-10-24 |
| First published | 2016-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Author | Rahul Dhawani |
| Maintainers | rahuldhawani |
| Keywords | react, time, timepicker, time-picker, gradient |

## Links

- npm: https://www.npmjs.com/package/react-gradient-timepicker
- Repository: https://github.com/rahuldhawani/react-gradient-timepicker
- Issues: https://github.com/rahuldhawani/react-gradient-timepicker/issues
- npm.io page: https://npm.io/package/react-gradient-timepicker

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^15.3.2
- [react-dom](https://npm.io/package/react-dom.md) ^15.3.2
- [lodash.find](https://npm.io/package/lodash.find.md) ^4.6.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2016-10-24
- 0.0.2 — 2016-10-20
- 0.0.1 — 2016-10-20

## README

# react-gradient-timepicker
A beautiful gradients timepicker component built in and for awesome React.
### Demo
https://github.com/rahuldhawani/react-timepicker

### Installation
```
npm install react-gradient-timepicker --save
```
### How to use?
```
import TimePicker from 'react-gradient-timepicker'; // or
var TimePicker = require('react-gradient-timepicker');
```
```
<TimePicker
  time="01:00"
  theme="Bourbon"
  className="timepicker"
  placeholder="Start Time"
  onSet={(val) => {
    alert('val:' + val.format12);
  }}
/>
```
### PropTypes
| prop        | type     | description                                                                                                                                                                                                        | optional                                                                                            |
|-------------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
| #time       | string   | 24 hours format time to initial time                                                                                                                                                                               | Yes. Takes current time if not provided                                                             |
| theme       | string   | Gradient name from uigradients.com. header, buttons, hand colors will take theme color. If you want to change buttons and hand color, provide color1 prop. Note: Header color cant be changed if theme is provided | Yes. If not provided it takes color1. if color1 is not provided it takes default color ie #F26B83.  |
| color1      | string   | color1 is primary color ie. header, buttons, hand will take this color. If you want to header color, provide headerColor prop                                                                                      |  Yes. Takes default color for header, buttons, hand ie. #F26B83                                     |
| headerColor | string   | Header color for timepicker. Does not work if theme prop is provided.                                                                                                                                              | Yes. If not provided it takes color1. if color1 is not provided it takes default color ie #F26B83.  |
| placeholder | string   | Placeholder string for timepicker input                                                                                                                                                                            | No                                                                                                  |
| className   | string   | Class name for timepicker input                                                                                                                                                                                    | Yes                                                                                                 |
| onSet       | function | The funciton to call when Set button is clicked                                                                                                                                                                    | No                                                                                                  |


##### onSet PropType
onSet function is called everytime **SET** button is clicked with parameter
```
{
    format12: '01:00 AM' // 12 hour format,
    format24: '13:00' // 24 hour format
}
```

### Screenshots
![Ash theme](http://i.imgur.com/wGHZYQF.png)
![Bourbon theme ](http://i.imgur.com/aXhofjL.png)
![default ](http://i.imgur.com/B2cZala.png)

---
_Source: https://npm.io/package/react-gradient-timepicker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
