Date Picker
A styled native date input that keeps the browser's picker and validation.
- ブラウザー
- Chrome 123+Firefox 121+Safari 17.5+
- ティア
- 0
- 強制レイアウトの上限
- 0 ms
- axe の上限
- 0
- SSR 対応
- はい
- 公開された契約
- テストハーネス
プレイグラウンド
Date Picker
Default
使用例
Native date input
The browser owns date entry, constraints, locale and picker UI; provide a visible label.
Date Picker
Default
import { DatePicker } from "@gunkin/uiify";
export default function Example() {
return (
<div>
<label htmlFor="start-date">Start date</label>
<DatePicker id="start-date" name="startDate" defaultValue="2026-10-19" />
</div>
);
}API
DatePicker
| Prop | 型 | 既定値 | 説明 |
|---|---|---|---|
type | fixed to "date" | — | Fixed native input type; the browser supplies the date picker. |
invalid | boolean | false | Sets aria-invalid and data-invalid when true. |
id / name / value / defaultValue / min / max / required / disabled | native input props | — | Native date input props and form behavior are preserved. |
className / style / ref / events | native input props | — | Native input props, styles, events, and ref are forwarded. |
キーボード
| キー | 操作 |
|---|
アクセシビリティ
Direct native input type=date wrapper. Provide a visible label and use native required, min, and max constraints. The browser owns date entry, locale, keyboard behavior, and picker UI; UIify does not format values, convert time zones, or provide a calendar grid. invalid sets aria-invalid and data-invalid.
スタイリングのフック
data-uiify-date-pickerdata-invalid