components/datepicker
Inputs · 15 / 64

DatePicker

ui.widgets.DatePicker

Enter a single date or pick it from a calendar.

BEHAVIOR CONTRACT

Trigger, calendar overlay, month navigation, selection and dismissal ship together.

RECORDED INTERACTION

The harness clicks “Pick a date” and the calendar opens.

examples/storybook/stories.zig:2463
// ── DatePicker ──
pub fn buildDatePicker(scope: *ui.Scope, cx: *ui.Cx) anyerror!*ui.Node {
    const dp = try W.DatePicker(.{ .placeholder = "Pick a date", .initial_year = 2026, .initial_month = 5 }).mount(scope, cx);
    return dp.wrapper;
}
View source on GitHubexamples/storybook/stories.zig:2463

The story's verbatim source from the Storybook (zenit 4c50245 2026-10-01). W is ui.widgets; col / row / label are small Storybook layout helpers.

zenit · Dual-licensedFree for open-source projects under GPL-3.0-only; closed-source or commercial products need a commercial license.Contact the author: zongyi.xzy#gmail.com (replace # with @)zenit 4c50245 2026-10-01