Gathering detailed insights and metrics for @commercetools-uikit/date-range-input
Gathering detailed insights and metrics for @commercetools-uikit/date-range-input
Gathering detailed insights and metrics for @commercetools-uikit/date-range-input
Gathering detailed insights and metrics for @commercetools-uikit/date-range-input
npm install @commercetools-uikit/date-range-input
Typescript
Module System
Node Version
NPM Version
TypeScript (59.12%)
JavaScript (36.8%)
MDX (2.8%)
CSS (1.02%)
HTML (0.16%)
Prolog (0.06%)
Shell (0.04%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
148 Stars
3,452 Commits
27 Forks
15 Watchers
124 Branches
350 Contributors
Updated on Jul 09, 2025
Latest Version
20.2.2
Package Id
@commercetools-uikit/date-range-input@20.2.2
Unpacked Size
79.78 kB
Size
9.61 kB
File Count
12
NPM Version
10.9.2
Node Version
22.17.0
Published on
Jul 08, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
20
3
3
The DateRangeInput
component allows the user to select a date range.
yarn add @commercetools-uikit/date-range-input
npm --save install @commercetools-uikit/date-range-input
Additionally install the peer dependencies (if not present)
yarn add moment react react-intl
npm --save install moment react react-intl
1import DateRangeInput from '@commercetools-uikit/date-range-input'; 2 3const Example = () => ( 4 <DateRangeInput 5 placeholder="Select a date..." 6 value={['2017-01-11', '2017-01-14']} 7 onChange={() => {}} 8 /> 9); 10 11export default Example;
Props | Type | Required | Default | Description |
---|---|---|---|---|
horizontalConstraint | union Possible values: , 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto' | Horizontal size limit of the input field. | ||
value | Array: MomentInput[] | ✅ | The selected date range, must either be an empty array or an array of two strings holding dates formatted as "YYYY-MM-DD". | |
aria-invalid | boolean | Indicate if the value entered in the input is invalid. | ||
aria-errormessage | string | HTML ID of an element containing an error message related to the input. | ||
onChange | Function See signature. | Called when the date range changes. Called with an event containing either an empty array (no value) or an array holding two string in this format: "YYYY-MM-DD". | ||
isClearable | boolean | true | Allows the range to be cleared | |
onFocus | Function See signature. | Called when the date input gains focus. | ||
onBlur | Function See signature. | Called when the date input loses focus. | ||
id | string | Used as the HTML id attribute. | ||
name | string | Used as the HTML name attribute. | ||
placeholder | string | Placeholder value to show in the input field | ||
isCondensed | boolean | Use this property to reduce the paddings of the component for a ui compact variant | ||
isDisabled | boolean | Disables the date picker | ||
isReadOnly | boolean | Disables the date picker menu and makes input field read-only | ||
hasError | boolean | Indicates the input field has an error | ||
hasWarning | boolean | Indicates the input field has warning |
onChange
1(event: TCustomEvent) => void
onFocus
1(event: TCustomEvent) => void
onBlur
1(event: TCustomEvent) => void
data-*
propsThe component further forwards all data-
attributes to the underlying input
component.
DateRangeInput.isEmpty
Returns true
when the value is considered empty, which is when the value is an empty array.
1TextInput.isEmpty([]); // -> true 2TextInput.isEmpty(['2018-09-20', '2018-09-24']); // -> false
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
SAST tool is run on all commits
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
2 existing vulnerabilities detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More