Adding days to day-select
Looking at the finished product, we can see that the day select displays an inline list of days, starting from today, and finishing the date a week from now.
Generating list of days using dayjs
Let's now add a
script tag to the component and import the
dayjs library to help us working with dates.
Click to load comments...