Gathering detailed insights and metrics for aeht-chakra-dayzed-datepicker
Gathering detailed insights and metrics for aeht-chakra-dayzed-datepicker
Gathering detailed insights and metrics for aeht-chakra-dayzed-datepicker
Gathering detailed insights and metrics for aeht-chakra-dayzed-datepicker
npm install aeht-chakra-dayzed-datepicker
Typescript
Module System
Min. Node Version
Node Version
NPM Version
69.3
Supply Chain
98.6
Quality
75.1
Maintenance
100
Vulnerability
100
License
TypeScript (99.09%)
HTML (0.49%)
JavaScript (0.42%)
Total Downloads
1,970
Last Day
3
Last Week
23
Last Month
89
Last Year
971
MIT License
235 Stars
148 Commits
55 Forks
1 Watchers
7 Branches
12 Contributors
Updated on Jun 23, 2025
Minified
Minified + Gzipped
Latest Version
0.0.7
Package Id
aeht-chakra-dayzed-datepicker@0.0.7
Unpacked Size
209.50 kB
Size
47.00 kB
File Count
28
NPM Version
8.11.0
Node Version
16.15.0
Published on
Feb 29, 2024
Cumulative downloads
Total Downloads
Every individual component is using Chakra UI. So it should respect all Chakra UI Configs without problem.
The componenent itself has to use some date
library
Highly recommend just copy/paste the source code from /src
to customize however you want.
Npm
npm i date-fns dayzed
npm i chakra-dayzed-datepicker
Yarn:
yarn add date-fns dayzed
yarn add chakra-dayzed-datepicker
1 const [date, setDate] = useState(new Date()); 2 3 <SingleDatepicker 4 name="date-input" 5 date={date} 6 onDateChange={setDate} 7 /> 8
Note that this list will have one value during the selection process. Your system won't work if you try to control this directly as [startDate, endDate]
because we'll try to set selectedDates
to [intermediateSelection]
and the length of the resulting selectedDates
is meaningful to the datepicker.
1 const [selectedDates, setSelectedDates] = useState<Date[]>([new Date(), new Date()]); 2 3 <RangeDatepicker 4 selectedDates={selectedDates} 5 onDateChange={setSelectedDates} 6 />
dateNavBtnProps
extends from ButtonProps
of Chakra-UI
This allows you to override the default behavior however your want as long as supported by Chakra-UI.
1dayOfMonthBtnProps = { 2 defaultBtnProps, 3 isInRangeBtnProp, 4 selectedBtnProps, 5 todayBtnProps 6}
dayOfMonthBtnProps
allows you to customzie date btn style based on the state.
Style precedence: default
< isInRange
< seleted
< today
.
popoverCompProps
might be useful when you want to setup some simple styles like text color globally
1popoverCompProps = { 2 popoverContentProps, 3 popoverBodyProps 4}
Example:
1 propsConfigs={{ 2 dateNavBtnProps: { 3 colorScheme: "blue", 4 variant: "outline" 5 }, 6 dayOfMonthBtnProps: { 7 defaultBtnProps: { 8 borderColor: "red.300", 9 _hover: { 10 background: 'blue.400', 11 } 12 }, 13 isInRangeBtnProps: { 14 color: "yellow", 15 }, 16 selectedBtnProps: { 17 background: "blue.200", 18 color: "green", 19 }, 20 todayBtnProps: { 21 background: "teal.400", 22 } 23 }, 24 inputProps: { 25 size: "sm" 26 }, 27 popoverCompProps: { 28 popoverContentProps: { 29 background: "gray.700", 30 color: "white", 31 }, 32 }, 33 }}
Non Chakra-related configurations :
configs={{
dateFormat: 'yyyy-MM-dd',
dayNames: 'abcdefg'.split(''), // length of 7
monthNames: 'ABCDEFGHIJKL'.split(''), // length of 12
firstDayOfWeek: 2, // default is 0, the dayNames[0], which is Sunday if you don't specify your own dayNames,
}}
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 | undefined | for single datepicker only, uses startOfDay as comparison, e.g., disabledDates={new Set([startOfDay(new Date()).getTime()} |
For version < npm@0.1.6
:
dayOfMonthBtnProps
extends from ButtonProps
and has only selectedBg
support,
1 dayOfMonthBtnProps: { 2 borderColor: "red.300", 3 selectedBg: "blue.200", 4 _hover: { 5 bg: 'blue.400', 6 } 7 },
No vulnerabilities found.
No security vulnerabilities found.
Last Day
-25%
3
Compared to previous day
Last Week
64.3%
23
Compared to previous week
Last Month
9.9%
89
Compared to previous month
Last Year
-2.8%
971
Compared to previous year