@barelyhuman/taco-datepicker

0.0.6-0 • Public • Published

taco-datepicker

Datepicker component extracted from Taco project

Install

$ npm install @barelyhuman/taco-datepicker

Demo

link

Usage

import React,{useState} from 'react';
import { Datepicker } from '@barelyhuman/taco-datepicker';

const App = props => {
  const [selectedDate,setSelectedDate] = useState(new Date());
	return <Datepicker value={selectedDate} onChange={dateObj=>setSelectedDate(new Date(dateObj.year,dateObj.month,dateObj.date))}/>
};

API

<Datepicker>

React component that renders a datepicker in the form of a calendar

<Datepicker value={selectedDate} onChange={dateObj=>setSelectedDate(new Date(dateObj.year,dateObj.month,dateObj.date))}/>

License

MIT © Reaper

Package Sidebar

Install

npm i @barelyhuman/taco-datepicker

Weekly Downloads

1

Version

0.0.6-0

License

MIT

Unpacked Size

14 kB

Total Files

7

Last publish

Collaborators

  • barelyreaper