Revel
GitHub
GitHub
  • Overview

    • Getting started
    • FAQ
    • Release notes
  • Foundations

    • Meet the standard
    • Accessibility
    • Internationalization
    • Information hierarchy
    • Speed
  • Design

    • Visual principles
    • Colors
    • Space
    • Icons
    • Typography
  • Design tokens
  • Style helpers
  • Content

    • Express your ideas
    • Actionable language
    • Inclusive and accessible language
    • Alternative text
    • Grammar and mechanics
      • Basics
      • Capitalization
      • Dates and units of measurement
      • Punctuation
  • Components

    • Alert
    • Avatar
    • Badge
    • Button
    • Button group
    • Checkbox
    • Date Input
      • dates
      • datetimes
      • ranges
      • date range
    • Field group
    • File dropzone
    • File upload
    • Flex
    • Grid
    • Icon
    • Image
    • Input
    • Input errors
    • Loader
    • Modal
    • Month picker
    • Multistep
      • multistep
      • step
    • Pagination
    • Popper
    • Radio
    • Repeater
    • Select
    • Tabs
    • Tile
    • Toast
    • Toggle
  • Directives

    • Click outside
    • Tooltip

Date Range

The Date Range component allows users to select a date range with an intuitive calendar interface. It supports preset date ranges, time picking, and responsive layouts for desktop and mobile.

Usage

import { RDateRange } from '@rebilly/revel';

<r-date-range v-model="dateRange" label="Select dates" />;

Basic Example

r-date-range-basic.vue

With Time Picker

Enable time selection by adding the show-time-picker prop.

r-date-range-with-time.vue

Constrained Date Range

Use min-date and max-date props to limit selectable dates.

r-date-range-constrained.vue

Maximum Date Range (in days)

Use max-date-range-days to limit how large a range the user can select. When set:

  • Preset options whose span exceeds the limit are hidden from the presets panel.
  • After the user picks a start date, the calendar automatically disables all dates beyond max-date-range-days days from it, preventing an oversized range.
r-date-range-max-date-range.vue

API

Props

NameTypeDefaultDescription
idstring() => nanoid()

Unique id of the date range control. Links the label to the trigger button.

labelstring''

requiredbooleanfalse

Marks the field as required in the label

optionalbooleanfalse

Marks the field as optional in the label

placeholderstring'Select date range'

disabledbooleanfalse

validateNullable, ValidationStatenull

showValidateMessagesbooleanfalse

timezonestring'UTC'

showPresetsbooleantrue

showTimePickerbooleantrue

is24hrbooleanfalse

minDateunion, Date, stringundefined

maxDateunion, Date, stringundefined

columnsunion, 1, 2undefined

maxDateRangeDaysnumberundefined

Events

NameDescription
apply
cancel
clear
Edit this page
Last Updated: 6/24/26, 1:17 PM
Contributors: Mo Jahani, Michal Ryngier
Prev
ranges