New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@neoaren/time-picker

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neoaren/time-picker

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

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

NameTypeRequiredDescription
idStringtrueThe unique identifier of the time-picker element.
defaultValueNumber DatefalseThe default value of the time-picker.
onChangeFunctionfalseThis function runs when the selected time changes. The only parameter to be passed is an object containing the selected time in different formats.
placeholderStringfalseThe text to be displayed when no time is selected.

License

MIT © NeoAren

Keywords

react

FAQs

Package last updated on 24 Jun 2019

Related posts