Input Date Range

A combination select and input field to select two dates.

Overview

The Input Date Range component simplifies selecting and displaying a specific date range. 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 text

  • Label: to customize Date / Time labels

You can find the instructions for styling here.

Examples

PropertyValue

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