# `ixfx-date-input`

Themed date or date-time input. Wraps the native picker, so keyboard entry, the calendar popup and localisation come from the browser; only the look follows the theme.

```html
<ixfx-date-input value="2026-11-09T13:45"></ixfx-date-input>
<ixfx-date-input type="date" min="2026-01-01"></ixfx-date-input>
```

| Attribute / Property | Type | Default | Description |
|---|---|---|---|
| `type` | `'date' \| 'datetime-local'` | `'datetime-local'` | Which picker |
| `value` | `string` | `''` | `YYYY-MM-DD` or `YYYY-MM-DDTHH:mm`, matching `type` |
| `min`, `max` | `string` | `''` | Limits, same format |
| `disabled` | `boolean` | `false` | |
| `name` | `string` | `''` | Form field name |
| `date` (property) | `Date \| null` | | `value` as a local-time `Date`; settable |

### Events

| Event | Detail | Description |
|---|---|---|
| `change` | `{ value: string, date: Date \| null }` | The user changed the value. `value` is empty when cleared or incomplete |

### CSS custom properties

`--date-input-padding`, `--date-input-background`, `--date-input-border`, `--date-input-border-radius`, `--date-input-icon-invert` (set to `1` on dark themes to lighten the picker icon).

Helpers `parseDateInput(value)` and `formatDateInput(date, type)` are exported.
