Appearance
DateTimePicker
Gộp control date + time thành một giá trị Date.
ts
import { DateTimePicker } from "@minap/ui";Sample
Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
value / onChange | Date | undefined | — | Ngày lịch + giờ đã gộp |
control | "auto" | "picker" | "native" | "auto" | native = datetime-local; picker = DatePicker+TimeField |
disabled | boolean | false | |
datePlaceholder / dateAriaLabel / timeAriaLabel | string | — | Nhãn a11y (mode picker) |
formatDisplay / iconPosition / surface | forwarded to DatePicker | PPP / start / auto | Chỉ mode picker |
Behavior
- control auto/picker/native
- Ghép DatePicker + TimeField khi picker
- Đường native: ẩn chrome UA qua native-temporal.css
Related
- Category:
forms-inputs - Catalog gallery:
/catalog/forms-inputs