All Projects → radekmie → react-timepicker

radekmie / react-timepicker

Licence: other
React timepicker in Android KitKat style

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to react-timepicker

create-chakra-icons
Transform SVGs to React Chakra UI <Icon /> ✨
Stars: ✭ 80 (+247.83%)
Mutual labels:  react-library, react-component
Input Moment
React datetime picker powered by momentjs
Stars: ✭ 507 (+2104.35%)
Mutual labels:  timepicker, react-component
react-textarea-code-editor
A simple code editor with syntax highlighting.
Stars: ✭ 247 (+973.91%)
Mutual labels:  react-component
esn
这是一个常用js小型工具库
Stars: ✭ 15 (-34.78%)
Mutual labels:  react-component
tiny-ui
⚛️ A friendly UI component set for React.js
Stars: ✭ 202 (+778.26%)
Mutual labels:  react-component
react-ignore-rerender
🚀 Simple component for ignoring the re-rendering of a piece of React's render method.
Stars: ✭ 28 (+21.74%)
Mutual labels:  react-component
VOSviewer-Online
VOSviewer Online is a tool for network visualization. It is a web-based version of VOSviewer, a popular tool for constructing and visualizing bibliometric networks.
Stars: ✭ 44 (+91.3%)
Mutual labels:  react-component
react-ratings-declarative
A customizable rating component for selecting x widgets or visualizing x widgets
Stars: ✭ 41 (+78.26%)
Mutual labels:  react-component
react-simple-star-rating
A simple react component for adding a star rating to your project.
Stars: ✭ 74 (+221.74%)
Mutual labels:  react-library
react-mathjax-preview
The MathJax React component you were looking for.
Stars: ✭ 46 (+100%)
Mutual labels:  react-component
fhir-questionnaire-render-react
Render FHIR Questionnaire as a web form using FHIRFormJS
Stars: ✭ 18 (-21.74%)
Mutual labels:  react-component
react-multiselect-two-sides
React multiselect two sides component
Stars: ✭ 15 (-34.78%)
Mutual labels:  react-component
react-file-input
⚛️  A file Input, with drag'n'drop and image editor for React
Stars: ✭ 71 (+208.7%)
Mutual labels:  react-component
react-simple-image-slider
simple image slider component for react
Stars: ✭ 127 (+452.17%)
Mutual labels:  react-component
react-tags-input
[Not Actively Maintained] An input control that handles tags interaction with copy-paste and custom type support.
Stars: ✭ 26 (+13.04%)
Mutual labels:  react-component
react-parallax-card
[wip] React component for a 3D card with parallax effects similar to Apple TV app icons.
Stars: ✭ 21 (-8.7%)
Mutual labels:  react-component
git-issue-react-electronjs
⚙️. ⚛️. A desktop application created with Electronjs and Reactjs to be cross-platform to manage and track GitHub issues.
Stars: ✭ 21 (-8.7%)
Mutual labels:  react-component
react-scale-text
A React library to keep an element's text scaled to fit it's container
Stars: ✭ 39 (+69.57%)
Mutual labels:  react-component
vue3-date-time-picker
Datepicker component for Vue 3
Stars: ✭ 157 (+582.61%)
Mutual labels:  timepicker
react-drag-list
A simple draggable list component。
Stars: ✭ 30 (+30.43%)
Mutual labels:  react-component

npm

react-timepicker

Timepicker is a React timepicker component that looks like Android KitKat one.

Example

Timepicker

Install

From npm

npm install react-timepicker --save

Quick Start

'use strict';

import React        from 'react';
import ReactDOM     from 'react-dom';
import {Timepicker} from 'react-timepicker';

// Remember to include timepicker.css
// If you can import CSS in JS:
import 'react-timepicker/timepicker.css';

class TimepickerExample extends React.Component {
    onChange (hours, minutes) {
        // ...
    },

    render () {
        return (
            <Timepicker onChange={this.onChange} />
        );
    }
}

ReactDOM.render(<TimepickerExample />, document.getElementById('timepicker-example'));

Prop Values

mode

React.PropTypes.bool

Initial mode - Timepicker.HOURS or Timepicker.MINUTES (default: Timepicker.HOURS).

size

React.PropTypes.number

Clock size in pixels (default: 300).

radius

React.PropTypes.number

Clock radius in pixels (default: 125).

hours

React.PropTypes.number

Initial hours (default: 0).

minutes

React.PropTypes.number

Initial minutes (default: 0).

formatNumber

React.PropTypes.func.isRequired

Function (number, 'info' | 'clock') => string formatting numbers (default: left pad with 0)

militaryTime

React.PropTypes.bool

Military (24-hour) time switch (default: true).

onChange

React.PropTypes.func

Callback function when a hour or a minute is changed. Passes 2 parameters: new hours and minutes.

onChangeMode

React.PropTypes.func

Callback function when mode is changed. Passes 1 parameter: new mode.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].