Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled days #76

Open
filippos13 opened this issue Aug 4, 2021 · 1 comment
Open

Disabled days #76

filippos13 opened this issue Aug 4, 2021 · 1 comment

Comments

@filippos13
Copy link

How can I disable specific days? For example the 1st, 23rd and 25th of a month?
Is there any way I can disable specific days using an date array?
Thank you

@ITernovtsii
Copy link

yes, check modifiers docs https://reactnicedates.hernansartorio.com/#api-reference
something like this will work

modifiers={{
  disabled: (date: Date) => [1, 23, 25].includes(date.getDate()),
}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants