kouloughli-picker

1.5.0 • Public • Published

kouloughli-picker

Caravane2 Reactjs DatePicker

NPM JavaScript Style Guide

Install

npm install --save kouloughli-picker

Usage

import React, { Component } from 'react'

import RangeDatePicker from 'kouloughli-picker'
import 'kouloughli-picker/dist/index.css'

class Example extends Component {
  render() {
    return <RangeDatePicker
                  startDate={new Date()}
                  endDate={new Date()}
                  onChange={(startDate, endDate) => console.log(startDate, endDate)}
                  minDate={new Date(2000, 0, 1)}
                  maxDate={new Date(2060, 0, 1)}
                  dateFormat="D"
                  monthFormat="MMM YYYY"
                  startDatePlaceholder="Start Date"
                  endDatePlaceholder="End Date"
                  disabled={false}
                  className="my-own-class-name"
                  startWeekDay="monday"
      />
  }
}

License

MIT © [Kouloughli Hemza](https://github.com/Kouloughli Hemza)

Readme

Keywords

none

Package Sidebar

Install

npm i kouloughli-picker

Weekly Downloads

1

Version

1.5.0

License

MIT

Unpacked Size

542 kB

Total Files

13

Last publish

Collaborators

  • microsarme6943