react-mjho-picker

0.1.5 • Public • Published

react-mjho-picker

Installation

Run the following command to install this package.

npm install react-mjho-picker

Configuration

The most basic use of the Pickers can be described with:

import React, { useState } from "react";
import { DatePicker, TimePicker, ColorPicker } from "react-mjho-picker";

const Example = () => {
  const [date, setDate] = useState(new Date());
  const [time, setTime] = useState(new Date());
  const [color, setColor] = useState('#ff0000');
  return (
    <DatePicker value={date} onChange={date => setDate(date)} />
    <TimePicker value={time} onChange={time => setTime(time)} />
    <ColorPicker value={coloe} onChange={color => setColor(color)} />
  );
};

Demo

Online Demo is here!

Readme

Keywords

Package Sidebar

Install

npm i react-mjho-picker

Homepage

./

Weekly Downloads

1

Version

0.1.5

License

ISC

Unpacked Size

21 kB

Total Files

6

Last publish

Collaborators

  • mjho