Input Date Range
A combination select and input field to select two dates.
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FM3AlEM6GdePu1zTlqpyJ%252FInput%2520Date%2520Range.png%3Falt%3Dmedia%26token%3D26b7369d-bb47-4424-a660-7236197b544d&width=768&dpr=4&quality=100&sign=8ce67429&sv=1)
Overview
The Input Date Range component simplifies selecting and displaying a specific range of dates. It usually consists of two input fields for the start and end dates and a calendar icon or button that opens a calendar interface for choosing the desired dates.
The Input Date Range component is perfect for scenarios where users must specify a time frame, such as filtering data, booking appointments, or scheduling events. It makes date selection intuitive and user-friendly.
Changing the Properties
Adding a label
The Label field allows you to enter text to display for the Input Date range.
Choosing a type
You can choose between Time and DateTime type for the Input Date Range. DateTime allows the end-users to specify a date and a time
Choosing a date format
3 different date format are available to customize the look and feel of the date and time displayed. You can choose from Short, Medium and Long.
Customizing Labels
Date and Time Labels can be customized if needed. For example, you can add Date Labels like From / To.
Adding Interactions
Interactions define what happens when users select an icon. A list of interactions is available here.
Here are the available Actions for the Input Date Range component:
On Change
The event fired when the value changed.
Styling the Input Date Range
From the Styles panel, you can customize styling attributes for the Input Date Range:
Header
: to customize main label textLabel
: to customize Date / Time labels
You can find the instructions for styling here.
Examples
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FYSJKDx2HyouDlA6shxPc%252F2022-10-21_10-47-19.png%3Falt%3Dmedia%26token%3Daeea63c3-82cd-4623-a101-3bcd5a934334&width=768&dpr=4&quality=100&sign=1647ba6&sv=1)
Property | Value |
---|---|
Label | Select Dates |
Type | Date |
Variant | Standard |
Format / Date Style | Short |
Label / Start Date | Check-in |
Label / End Date | Check-out |
Style / Header Color | #0b5cab |
Style / Font Size | 16px |
Style / Font Weight | 700 - Bold |
Last updated