DateFieldInput
Source: client/lib/theme/vueda-tailwind/controls/index.js
A single editable date segment (year / month / day). Renders in
--vueda-font-monoatfont-mediumwithfont-feature-settings: 'tnum','zero'so digit widths stay stable as values change and0remains visually distinct fromO. The focused segment paints--accent/--accent-foreground(same recipe as a menu-item-highlighted row, since a focused segment is a selection);caret-transparenthides the text caret because segments edit via arrow keys rather than free-form typing, anddata-[placeholder]mutes the segment to--muted-foregroundwhile empty.
Vue component: DateFieldInput
| Slot | Default classes | Description |
|---|---|---|
| root | 2 classes | A single editable date segment (year / month / day). Renders in --vueda-font-mono at font-medium with font-feature-settings: 'tnum','zero' so digit widths stay stable as values change and 0 remains visually distinct from O. The focused segment paints --accent / --accent-foreground (same recipe as a menu-item-highlighted row, since a focused segment is a selection); caret-transparent hides the text caret because segments edit via arrow keys rather than free-form typing, and data-[placeholder] mutes the segment to --muted-foreground while empty. |
root
A single editable date segment (year / month / day). Renders in
--vueda-font-monoatfont-mediumwithfont-feature-settings: 'tnum','zero'so digit widths stay stable as values change and0remains visually distinct fromO. The focused segment paints--accent/--accent-foreground(same recipe as a menu-item-highlighted row, since a focused segment is a selection);caret-transparenthides the text caret because segments edit via arrow keys rather than free-form typing, anddata-[placeholder]mutes the segment to--muted-foregroundwhile empty.
Default classes:
inline rounded-sm px-0.5 text-center font-mono font-medium [font-feature-settings:'tnum','zero']
caret-transparent outline-none focus:bg-accent focus:text-accent-foreground data-[placeholder]:text-muted-foregroundSource: client/lib/theme/vueda-tailwind/controls/DateFieldInput.theme.js:18