Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.
/ time-picker Public archive

⏰ A modern and easy-to-use React time picker component

License

Notifications You must be signed in to change notification settings

andras-adam/time-picker

Repository files navigation

Time Picker

NPM NPM Minzipped size NPM Download Week JavaScript Style Guide NPM License

⏰ A modern and easy-to-use React time picker component

Install

Install the time picker

npm install --save @neoaren/time-picker

Peer dependencies

This component uses React >=16.8.0 and React DOM >=16.8.0 as peer dependencies.

Install them using npm

npm install --save react react-dom

Usage

import React from 'react';
import TimePicker from '@neoaren/time-picker';

const App = () => {

  return (
    <TimePicker id="my-timepicker" />
  );

};

Component API

Name Type Required Description
id String true The unique identifier of the time-picker element.
defaultValue Number Date false The default value of the time-picker.
onChange Function false This function runs when the selected time changes. The only parameter to be passed is an object containing the selected time in different formats.
placeholder String false The text to be displayed when no time is selected.

License

MIT © NeoAren

About

⏰ A modern and easy-to-use React time picker component

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published