1.3.0 • Published 4 years ago

simple-react-time-picker v1.3.0

Weekly downloads
32
License
MIT
Repository
github
Last release
4 years ago

Simple-React-Time-Picker

A simple time picker component for a React App.

Installation

Install by executing npm i simple-react-time-picker or yarn add simple-react-time-picker.

Demo

A minimal demo is available here!

Documentation

Include component into your project with

import TimePicker from 'simple-react-time-picker

Minimum setup for the component is the following

<TimePicker />

With the usage of props onChange you can obtain current time selected as a moment.js object.

Props

Prop nameDescriptionDefault valueExample values
TwelveHoursTime format, if 12 or 24truetrue
titleTitle of the Time PickerSelect a timeSelect a time
onChangeCallback trigger at each selectionn/an/a
withoutTitleIf it is set to true, title is hiddenfalsetrue
mobileIt triggers mobile visualizationfalsetrue
verticalCheckbox are placed verticallyfalsetrue
textCenteredText inside checkbox is centeredfalsetrue
1.3.0

4 years ago

1.2.0

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago