Calendar
ui.widgets.Calendar월 보기에서의 날짜 탐색과 선택.
BEHAVIOR CONTRACT
월 계산, 첫 주 오프셋, 선택 날짜, 탐색 버튼이 SimpleDate 모델을 공유합니다.
RECORDED INTERACTION
harness가 18일을 클릭하면 선택 상태가 이동합니다.
// ── Calendar ──
pub fn buildCalendar(scope: *ui.Scope, cx: *ui.Cx) anyerror!*ui.Node {
const cal = try W.Calendar(.{ .initial_year = 2026, .initial_month = 5 }).mount(scope, cx);
return cal.wrapper;
}Storybook에 있는 이 story의 원본 코드입니다(zenit 5f9add5+wip 2026-09-30). W는 ui.widgets이며, col / row / label은 Storybook 내부의 작은 레이아웃 헬퍼입니다.
CalendarProps
ui.widgets.Calendarfn Calendar(props: CalendarProps) CalendarBuilder필드
타입
기본값
설명
initial_yearu162025—
initial_monthu81—
selected_date?SimpleDatenull—
on_select?core.HandlerRefnull—
cell_sizef3236—
prev_icon_asset?svg_assets.Assetnull—
next_icon_asset?svg_assets.Assetnull—
CalendarResult
ui.widgets.Calendar필드
타입
기본값
설명
wrapper*Node—
—
state*CalendarState—
—