npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-tix-date-time-picker

v1.1.28

Published

react-tix-date-time-picker React component

Readme

React-Tix-Date-Time-Picker v1.1.16

A date time picker for your React app.

  • Pick days, months, years, and time
  • Supports english and indonesian
  • No moment.js needed
  • Build on top of react-day-picker plugin

Install

Install by executing

npm install --save react-tix-date-time-picker --registry=http://verdaccio.tiket.com:8080

Date Picker

Usage

Displays an input field complete with inputs and a calendar. Here's an example of basic usage:

import React, { Component } from 'react';
import { DatePicker } from 'react-tix-date-time-picker';
import 'react-tix-date-time-picker/libs/styles.css';

class MyApp extends Component {
  onApply = date => this.setState({ date })

  render() {
    return (
      <div>
        <DatePicker
          onApply={this.onApply}
        />
      </div>
    );
  }
}

Props

|Prop name|Description|Example values| |----|----|----| |className|Defines datepicker container class name(s).|String: "class1 class2"| |inputClassName|Defines datepicker input class name(s).|String: "class1 class2"| |placeholder|Defines input placeholder.|String: "Choose Date"| |dateFormat|Defines the date format content of the input|String: "yyyy-mm-dd HH:MM:ss"| |value|Defines initial or value of date input|String: "2018-03-01"Date Object new Date()| |lang|Defines the content language.|String: "en"| |onApply|Function called when the user clicks a date or click apply button on calendar.|(selectedDate) => alert('Sellected date is: ', selectedDate)| |selectType|Define type of date selection, enum of: "single", "multiple" or "range"|String: "multiple"| |beforeShow|Function called before calendar shown.|(dateValue, input, overlay) => { console.log(dateValue) }| |afterShow|Function called after calendar shown.|(dateValue, input, overlay) => { console.log(dateValue) }| |beforeHide|Function called before calendar hide.|(dateValue, input, overlay) => { console.log(dateValue) }| |afterHide|Function called after calendar hide.|(dateValue, input, overlay) => { console.log(dateValue) }|

rest of available props relies on react-day-picker documentation

Function

.reset() Function to reset datepicker state. usage:


<DatePicker ref={dp => this.datePicker = dp}>

...

handleClick() {
  this.datepicker.reset();
}

Date Time Picker

Usage

Displays an input field complete with inputs, a calendar and time picker. Here's an example of basic usage:

import React, { Component } from 'react';
import { DateTimePicker } from 'react-tix-date-time-picker';
import 'react-tix-date-time-picker/libs/styles.css';

class MyApp extends Component {
  onApply = date => this.setState({ date })

  render() {
    return (
      <div>
        <DateTimePicker
          onApply={this.onApply}
        />
      </div>
    );
  }
}

Props

|Prop name|Description|Example values| |----|----|----| |className|Defines date time picker class name(s).|String: "class1 class2"| |inputClassName|Defines input class name(s).|String: "class1 class2"| |placeholder|Defines input placeholder.|String: "Choose Date Time"| |dateFormat|Defines the date format content of the input|String: "yyyy-mm-dd HH:MM:ss"| |value|Defines initial or value of date input|String: "2018-03-01"Date Object new Date()| |lang|Defines the content language.|String: "en"| |onApply|Function called when the user clicks apply button on calendar.|(selectedDate) => alert('Selected date is: ', selectedDate)| |minStep|Defines the minute increment step.|Int: 5| |minStart|Defines the minimum minute.|Int: 10| |minEnd|Defines the maximum minute.|Int: 35| |hourStep|Defines the minute increment step.|Int: 2| |hourStart|Defines the minimum hour.|Int: 6| |hourEnd|Defines the maximum hour.|Int: 22|

rest of available props relies on react-day-picker documentation

Time Picker

Usage

Displays an input field complete with inputs and time picker. Here's an example of basic usage:

import React, { Component } from 'react';
import { TimePicker } from 'react-tix-date-time-picker';
import 'react-tix-date-time-picker/libs/styles.css';

class MyApp extends Component {
  onApply = time=> this.setState({ time })

  render() {
    return (
      <div>
        <TimePicker 
          onApply={this.onApply}
        />
      </div>
    );
  }
}

Props

|Prop name|Description|Example values| |----|----|----| |className|Defines date time picker class name(s).|String: "class1 class2"| |inputClassName|Defines input class name(s).|String: "class1 class2"| |placeholder|Defines input placeholder.|String: "Select Time"| |timeFormat|Defines the time format content of the input|String: "HH:MM"| |value|Defines initial or value of time input|String: "20:10"Date Object: new Date()| |lang|Defines the content language.|String: "en"| |onApply|Function called when the user clicks apply button on time picker.|(selectedTime) => alert('Sellected time is: ', selectedTime)| |minStep|Defines the minute increment step.|Int: 5| |minStart|Defines the minimum minute.|Int: 10| |minEnd|Defines the maximum minute.|Int: 35| |hourStep|Defines the minute increment step.|Int: 2| |hourStart|Defines the minimum hour.|Int: 6| |hourEnd|Defines the maximum hour.|Int: 22|

Author

Deni Setyawan.