문서 날짜와 시간

UIMonthPicker

월을 입력하거나 달력에서 선택합니다.

기본 사용법

청구 월 선택

달력 버튼을 눌러 월 선택기를 엽니다. 연도를 탐색한 다음 해당 연도의 월을 선택합니다.

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

const billingMonth = ref({ year: 2026, month: 8, day: 1 });
</script>

<template>
  <UIMonthPicker v-model="billingMonth" />
</template>

설정과 동작

선택 가능한 월

2026년에 속하는 월만 고를 수 있습니다. 2026-09를 입력해 확정하거나 달력으로 선택합니다.

조합과 확장

월 선택 포털

월 목록을 포털에 표시합니다.

구성 컴포넌트

구조와 배치

UIMonthPickerGrid

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

월 선택 포털 예제

팝업과 위치

UIMonthPickerAnchor

떠 있는 콘텐츠의 위치를 계산할 때 기준이 되는 요소입니다.

월 선택 포털 예제
UIMonthPickerPortal

콘텐츠를 현재 DOM 계층 밖의 포털 대상으로 옮깁니다.

월 선택 포털 예제
UIMonthPickerContent

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

월 선택 포털 예제

값 입력과 선택

UIMonthPickerCell

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

월 선택 포털 예제
UIMonthPickerInput

키보드로 값을 입력하거나 수정하는 요소입니다.

월 선택 포털 예제

탐색과 동작

UIMonthPickerTrigger

컨트롤을 실행하거나 콘텐츠를 여는 버튼입니다.

월 선택 포털 예제
UIMonthPickerPreviousYear

직전 연도로 이동합니다.

월 선택 포털 예제
UIMonthPickerNextYear

다음 연도로 이동합니다.

월 선택 포털 예제

주요 API

속성과 모델

default-value타입DateValue | null | undefined

선택기를 처음 열 때 입력에 표시할 월의 값입니다.

editable타입boolean | undefined

YYYY-MM 형식으로 월을 직접 입력할 수 있습니다.

선택 가능한 월 예제

입력 상태

readonly타입boolean

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

disabled타입boolean

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

슬롯

#default타입(props: PickerRootSlotProps<DateValue | null>) => VNodeChild

현재 보고 있는 연도의 월들을 months로 받습니다.

월 선택 포털 예제
전체 속성, 이벤트와 슬롯

UIMonthPicker

model-value
DateValue | null | undefined
default-value
DateValue | 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: DateValue | null) => unknown
@update:open
(value: boolean) => unknown
@update:highlighted-value
(value: DateValue) => unknown
name
string | undefined
form
string | undefined
editable
boolean | undefined
clearable
boolean | undefined
clear-label
string | undefined
#default
(props: PickerRootSlotProps<DateValue | null>) => VNodeChild

UIMonthPickerTrigger

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

UIMonthPickerAnchor

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

UIMonthPickerPortal

to
string | HTMLElement | undefined
disabled
boolean | undefined
defer
boolean | undefined

UIMonthPickerContent

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

UIMonthPickerGrid

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

UIMonthPickerCell

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

UIMonthPickerInput

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

UIMonthPickerPreviousYear

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

UIMonthPickerNextYear

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