---
title: DatePicker
description: JSON Schema for the DatePicker component.
---

Date picker with a popover calendar.

```json
{
  "type": "object",
  "properties": {
    "type": {
      "const": "DatePicker",
      "default": "DatePicker",
      "type": "string"
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling. Accepts a Responsive() for breakpoint-aware classes."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "State key for reactive binding. Auto-generated if omitted."
    },
    "placeholder": {
      "default": "Pick a date",
      "description": "Button text when no date is selected",
      "type": "string"
    },
    "onChange": {
      "$ref": "Action",
      "description": "Action(s) when date changes",
      "default": null
    }
  },
  "required": [
    "type"
  ]
}
```
