Skip to content

Commit

Permalink
Merge pull request #49 from aboveyunhai/export-calendar
Browse files Browse the repository at this point in the history
Export calendar, add disabledDates
  • Loading branch information
aboveyunhai committed Apr 24, 2023
2 parents 19cea7a + fa0347a commit 9af8d68
Show file tree
Hide file tree
Showing 8 changed files with 400 additions and 182 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
node_modules
.cache
dist
.parcel-cache
.parcel-cache
.vscode
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,15 @@ Non Chakra-related configurations :

### other props:

Name | Type | Default value | Description
----------------------|------------------------|-------------------------|--------------
name | string | undefined | name attribute for `<input />` element
usePortal | boolean | undefined | to prevent parent styles from clipping or hiding content
defaultIsOpen | boolean | false | open the date panel at the beginning
closeOnSelect | boolean | true | close the date panel upon the complete selection
minDate | Date | undefined | minimum date
maxDate | Date | undefined | maximum date
Name |single/range | Type | Default value | Description
----------------------|--------------|------------------------|-------------------------|--------------
name |both | string | undefined | name attribute for `<input />` element
usePortal |both | boolean | undefined | to prevent parent styles from clipping or hiding content
defaultIsOpen |both | boolean | false | open the date panel at the beginning
closeOnSelect |both | boolean | true | close the date panel upon the complete selection
minDate |both | Date | undefined | minimum date
maxDate |both | Date | undefined | maximum date
disabledDates |single | Set<number> | undefined | for single datepicker only, uses `startOfDay` as comparison, e.g., ` disabledDates={new Set([startOfDay(new Date()).getTime()}`

For version < `npm@0.1.6`:</br>
`dayOfMonthBtnProps` extends from `ButtonProps` and has only `selectedBg` support,
Expand Down

0 comments on commit 9af8d68

Please sign in to comment.