문서 날짜와 시간

UIRangeCalendar

달력에서 시작일과 종료일을 선택합니다.

기본 사용법

달력에서 시작일과 종료일 고르기

시작일을 누른 다음 종료일을 선택하면 두 날짜 사이의 구간이 표시됩니다. 연도와 월이 표시된 제목을 눌러 다른 달을 바로 찾을 수 있습니다.

<script setup lang="ts">
import { UIRangeCalendar } from "@connextable/ui";
import { ref } from "vue";

const stay = ref({
  start: { year: 2026, month: 8, day: 22 },
  end: { year: 2026, month: 8, day: 25 },
});
</script>

<template>
  <UIRangeCalendar v-model="stay" label="숙박 달력" />
</template>

설정과 동작

숙박 날짜와 입실과 퇴실 시간 고르기

시작과 종료 시간에 각각 모델을 연결합니다. 두 시각은 날짜 범위와 독립적으로 바꿀 수 있습니다.

주 단위 범위

주 단위로 이동하면서 기간을 고릅니다.

범위 선택의 최소 및 최대 날짜

8월 20일과 27일 사이에서만 시작 및 종료 날짜를 고를 수 있습니다.

연도를 옮겨 원하는 월 선택

연도 뷰에서 월을 선택하면 해당 달의 날짜로 전환합니다.

실전 예제

선택한 기간 제출

범위를 고른 뒤 제출하면 values.start와 values.end에서 시작일과 종료일을 읽습니다.

구성 컴포넌트

구조와 배치

UIRangeCalendarContent

트리거 또는 현재 값에 연결된 콘텐츠를 담습니다.

연도를 옮겨 원하는 월 선택 예제
UIRangeCalendarGrid

항목을 행과 열에 배치하는 영역입니다.

연도를 옮겨 원하는 월 선택 예제

값 입력과 선택

UIRangeCalendarCell

그리드에서 선택하거나 탐색할 항목입니다.

연도를 옮겨 원하는 월 선택 예제
UIRangeCalendarMonthCell

연간 보기에서 특정 월을 선택하는 셀입니다.

연도를 옮겨 원하는 월 선택 예제
UIRangeCalendarStartInput

선택한 시작일을 제출하는 숨은 폼 입력입니다.

선택한 기간 제출 예제
UIRangeCalendarEndInput

선택한 종료일을 제출하는 숨은 폼 입력입니다.

선택한 기간 제출 예제

탐색과 동작

UIRangeCalendarPreviousWeek

직전 주로 이동합니다.

주 단위 범위 예제
UIRangeCalendarNextWeek

다음 주로 이동합니다.

주 단위 범위 예제
UIRangeCalendarPreviousMonth

직전 달로 이동합니다.

연도를 옮겨 원하는 월 선택 예제
UIRangeCalendarNextMonth

다음 달로 이동합니다.

연도를 옮겨 원하는 월 선택 예제
UIRangeCalendarPreviousYear

직전 연도로 이동합니다.

연도를 옮겨 원하는 월 선택 예제
UIRangeCalendarNextYear

다음 연도로 이동합니다.

연도를 옮겨 원하는 월 선택 예제
UIRangeCalendarWeekViewTrigger

주 단위 보기로 전환합니다.

UIRangeCalendarMonthViewTrigger

월 단위 보기로 전환합니다.

연도를 옮겨 원하는 월 선택 예제
UIRangeCalendarYearViewTrigger

연 단위 보기로 전환합니다.

연도를 옮겨 원하는 월 선택 예제

주요 API

속성과 모델

v-model:start-time타입UITimeValue | null

시작 시간 목록을 표시하고 선택값을 연결합니다.

숙박 날짜와 입실과 퇴실 시간 고르기 예제
v-model:end-time타입UITimeValue | null

종료 시간 목록을 표시하고 선택값을 연결합니다.

숙박 날짜와 입실과 퇴실 시간 고르기 예제
default-value타입DateRange | null | undefined

시작일과 종료일로 구성한 초기 날짜 범위입니다.

time-precision / time-policies

양쪽 시간 목록에 사용할 정밀도와 시간 경계를 지정합니다.

입력 상태

readonly타입boolean

값을 유지하고 사용자 조작으로 변경되는 것을 막습니다. 읽기와 탐색은 계속 지원합니다.

disabled타입boolean

입력과 선택을 비활성화합니다. 네이티브 입력은 Tab 순서에서 빠집니다.

슬롯

#default타입(props: RangePickerRootSlotProps<DateRange | null>) => VNodeChild

현재 보기의 날짜와 범위 선택 상태를 받습니다.

연도를 옮겨 원하는 월 선택 예제
전체 속성, 이벤트와 슬롯

UIRangeCalendar

model-value
DateRange | null | undefined
default-value
DateRange | null | undefined
open
boolean | undefined
default-open
boolean | undefined
highlighted-value
DateValue | undefined
default-highlighted-value
DateValue | undefined
reference-date
DateValue | undefined
default-view
CalendarViewMode | undefined
disabled
boolean | undefined
readonly
boolean | undefined
required
boolean | undefined
label
string | undefined
policies
DatePickerPolicies | undefined
as
PrimitiveAs | undefined
as-child
boolean | undefined
shift
boolean | undefined
side
RectSide | undefined
align
RectAlign | undefined
side-offset
number | undefined
collision-padding
PositionPadding | undefined
collision-boundary
PositionBoundary | undefined
avoid-collisions
boolean | undefined
flip
boolean | undefined
hide-when-detached
boolean | undefined
strategy
PositionStrategy | undefined
tracking
PositionTracking | undefined
position
boolean | undefined
@update:model-value
(value: DateRange | null) => unknown
@update:open
(value: boolean) => unknown
@update:highlighted-value
(value: DateValue) => unknown
name
string | undefined
form
string | undefined
time-precision
TimeFieldPrecision | undefined
time-policies
TimeFieldPolicies | undefined
start-time
TimeValue | null | undefined
end-time
TimeValue | null | undefined
@update:start-time
(time: TimeValue | null) => void
@update:end-time
(time: TimeValue | null) => void
clearable
boolean | undefined
clear-label
string | undefined
#default
(props: RangePickerRootSlotProps<DateRange | null>) => VNodeChild

UIRangeCalendarContent

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: RangePickerContentSlotProps<DateRange | null>) => VNodeChild

UIRangeCalendarGrid

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: PickerRootSlotProps<DateRange | null>) => VNodeChild

UIRangeCalendarCell

as
PrimitiveAs | undefined
as-child
boolean | undefined
value필수
DateValue
#default
(props: PickerCellSlotProps) => VNodeChild

UIRangeCalendarMonthCell

as
PrimitiveAs | undefined
as-child
boolean | undefined
value필수
CalendarMonthValue
#default
(props: PickerMonthCellSlotProps) => VNodeChild

UIRangeCalendarStartInput

name
string | undefined
form
string | undefined
readonly
boolean | undefined
as
PrimitiveAs | undefined
as-child
boolean | undefined

UIRangeCalendarEndInput

name
string | undefined
form
string | undefined
readonly
boolean | undefined
as
PrimitiveAs | undefined
as-child
boolean | undefined

UIRangeCalendarPreviousWeek

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: PickerRootSlotProps<DateRange | null>) => VNodeChild

UIRangeCalendarNextWeek

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: PickerRootSlotProps<DateRange | null>) => VNodeChild

UIRangeCalendarPreviousMonth

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: PickerRootSlotProps<DateRange | null>) => VNodeChild

UIRangeCalendarNextMonth

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: PickerRootSlotProps<DateRange | null>) => VNodeChild

UIRangeCalendarPreviousYear

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: PickerRootSlotProps<DateRange | null>) => VNodeChild

UIRangeCalendarNextYear

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: PickerRootSlotProps<DateRange | null>) => VNodeChild

UIRangeCalendarWeekViewTrigger

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: PickerRootSlotProps<DateRange | null>) => VNodeChild

UIRangeCalendarMonthViewTrigger

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: PickerRootSlotProps<DateRange | null>) => VNodeChild

UIRangeCalendarYearViewTrigger

as
PrimitiveAs | undefined
as-child
boolean | undefined
#default
(props: PickerRootSlotProps<DateRange | null>) => VNodeChild