File size: 455 Bytes
cf86710
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { DayPicker } from "./react-day-picker-v8";

const availableDays = [new Date(2021, 5, 23), new Date(2021, 5, 24)];

const availableStyle = {
  fontWeight: 900,
  color: "lightgreen"
};

export function ModifiersStyle() {
  return (
    <DayPicker
      mode="single"
      defaultMonth={availableDays[0]}
      modifiers={{
        available: availableDays
      }}
      modifiersStyles={{
        available: availableStyle
      }}
    />
  );
}