Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-gradient-timepicker

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-gradient-timepicker

React Timepicker

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
334
increased by19.71%
Maintainers
1
Weekly downloads
 
Created
Source

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

proptypedescriptionoptional
#timestring24 hours format time to initial timeYes. Takes current time if not provided
themestringGradient 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 providedYes. If not provided it takes color1. if color1 is not provided it takes default color ie #F26B83.
color1stringcolor1 is primary color ie. header, buttons, hand will take this color. If you want to header color, provide headerColor propYes. Takes default color for header, buttons, hand ie. #F26B83
headerColorstringHeader 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.
placeholderstringPlaceholder string for timepicker inputNo
classNamestringClass name for timepicker inputYes
onSetfunctionThe funciton to call when Set button is clickedNo
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 Bourbon theme default

Keywords

FAQs

Package last updated on 24 Oct 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc