@schibstedspain/sui-form-range-datepicker

1.24.0 • Public • Published

FormRangeDatepicker

@schibstedspain/sui-form-range-datepicker

A React component that show a date range. You can select a start date and end date. When press the button, you get the date range between the dates.

This component use npm component: react-datepicker.

Installation

npm install @schibstedspain/sui-form-range-datepicker --save

Usage

import FormRangeDatepicker from '@schibstedspain/sui-form-range-datepicker'
function handleClick (range) {
  console.log('handleClick', range)
}

function handleChangeStart (date) {
  console.log('handleChangeStart', date)
}

function handleChangeEnd (date) {
  console.log('handleChangeEnd', date)
}

<FormRangeDatepicker buttonLabel='Test' handleClickButton={handleClick} handleChangeStart={handleChangeStart} handleChangeEnd={handleChangeEnd} />

Readme

Keywords

none

Package Sidebar

Install

npm i @schibstedspain/sui-form-range-datepicker

Weekly Downloads

22

Version

1.24.0

License

MIT

Unpacked Size

18.1 kB

Total Files

7

Last publish

Collaborators

  • schibstedspain