0.0.6-0 • Published 3 years ago

@barelyhuman/taco-datepicker v0.0.6-0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

0.0.6-0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago