LukaszBielsko
LukaszBielsko

Reputation: 321

Is there a react date picker that allows two week view?

I'm looking for react date picker that allows for two week view. As shown in the picture.

enter image description here

Upvotes: 0

Views: 1183

Answers (1)

LukaszBielsko
LukaszBielsko

Reputation: 321

It is possible with react day picker by adding custom range to modifiers object and adding css class to this range.

// ...
  const modifiers = {
    hideDays: {
      before: hideBefore,
      after: hideAfter,
    },
  }

  const modifiersStyles = {
    hideDays: {
      display: 'none',
    },
  } 

// ...

<DayPicker
  modifiers={modifiers}
  modifiersStyles={modifiersStyles}
/>

Upvotes: 1

Related Questions