- 컴포넌트1
- calendar
- date-picker
- GitHub - gpbl/react-day-picker: React DayPicker is a customizable date picker component for React, with native TypeScript support.
- GitHub - deseretdigital/dayzed: Primitives to build simple, flexible, WAI-ARIA compliant React date-picker components.
- GitHub - Hacker0x01/react-datepicker: A simple and reusable datepicker component for React
- headless
- 그외
Footnotes
import {
addDays,
addMonths,
eachDayOfInterval,
eachWeekOfInterval,
startOfMonth,
} from 'date-fns'
const startOfMonthDate = startOfMonth(new Date())
const matrix = eachWeekOfInterval({
start: startOfMonthDate,
end: addMonths(startOfMonthDate, 1),
}).map((weekDay) => {
const startDate = new Date(weekDay)
return eachDayOfInterval({
start: startDate,
end: addDays(startDate, 6),
})
})