Skip to content

Date Range Picker Element #765

Closed Answered by JasonGH17
JasonGH17 asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to get it working with the regular single month view date range calendar, I also added a month and year picker for convenience.

Just make sure to pass in a valid DateRange object to its v-model.

<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { type DateValue, getLocalTimeZone, today } from '@internationalized/date';
import { createDecade, createYear } from 'radix-vue/date';
import {
  RangeCalendarRoot,
  type RangeCalendarRootProps,
  type RangeCalendarRootEmits,
  useDateFormatter,
  useForwardPropsEmits,
} from 'radix-vue';
import { toDate } from 'radix-vue/date';
import {
  RangeCalendarCell,
  RangeCalendarCellTrigger,
  RangeCalendarGrid

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JasonGH17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant