Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aboveyunhai committed Apr 24, 2023
1 parent 9576e4b commit fa0347a
Showing 1 changed file with 9 additions and 8 deletions.
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 fa0347a

Please sign in to comment.