{
  "name": "date-input",
  "componentName": "DateInput",
  "displayName": "DateInput",
  "regions": [],
  "functions": [
    {
      "name": "focus",
      "description": "Sets input focus onto the UI control.",
      "returnType": "void",
      "parameters": []
    },
    {
      "name": "select",
      "description": "Selects all text in the input control.",
      "returnType": "void",
      "parameters": []
    }
  ],
  "properties": [
    {
      "name": "ariaDescribedby",
      "type": "string",
      "optional": true,
      "description": "Adds `aria-describedby` to the component. If you're using this component within a form field,\ndon't set this property because the form field component automatically sets it.\n\nUse this property if the component isn't surrounded by a form field, or you want to override the value\nautomatically set by the form field (for example, if you have two components within a single form field).\n\nTo use it correctly, define an ID for each element that you want to use as a description\nand set the property to a string of each ID separated by spaces (for example, `\"id1 id2 id3\"`).",
      "formattedType": "string"
    },
    {
      "name": "ariaLabel",
      "type": "string",
      "optional": true,
      "description": "Adds an `aria-label` to the native control.\n\nUse this if you don't have a visible label for this control.",
      "formattedType": "string"
    },
    {
      "name": "ariaLabelledby",
      "type": "string",
      "optional": true,
      "description": "Adds `aria-labelledby` to the component. If you're using this component within a form field,\ndon't set this property because the form field component automatically sets it.\n\nUse this property if the component isn't surrounded by a form field, or you want to override the value\nautomatically set by the form field (for example, if you have two components within a single form field).\n\nTo use it correctly, define an ID for the element you want to use as label and set the property to that ID.",
      "formattedType": "string"
    },
    {
      "name": "ariaRequired",
      "type": "boolean",
      "optional": true,
      "description": "Specifies whether to add `aria-required` to the native control.",
      "formattedType": "boolean"
    },
    {
      "name": "autoFocus",
      "type": "boolean",
      "optional": true,
      "description": "Indicates whether the control should be focused as\nsoon as the page loads, which enables the user to\nstart typing without having to manually focus the control. Don't\nuse this option on pages where the control may be\nscrolled out of the viewport.",
      "formattedType": "boolean"
    },
    {
      "name": "controlId",
      "type": "string",
      "optional": true,
      "description": "Specifies the ID of the native form element. You can use it to relate\na label element's `for` attribute to this control.\n\nIt defaults to an automatically generated ID that\nis provided by its parent form field component.",
      "formattedType": "string"
    },
    {
      "name": "disabled",
      "type": "boolean",
      "optional": true,
      "description": "Specifies if the control is disabled, which prevents the\nuser from modifying the value and prevents the value from\nbeing included in a form submission. A disabled control can't\nreceive focus.",
      "formattedType": "boolean"
    },
    {
      "name": "format",
      "type": "string",
      "inlineType": {
        "name": "DateFormat",
        "type": "union",
        "values": [
          "iso",
          "slashed",
          "long-localized"
        ]
      },
      "optional": true,
      "description": "The format as it is displayed. It can take the following values:\n* `iso`: ISO 8601 format without time, e.g.: 2024-01-30 (or 2024-01).\n* `long-localized`: a more human-readable, localized format, e.g.: January 30, 2024 (or January, 2024).\n* `slashed`: similar to ISO 8601 but with '/' in place of '-'. e.g.: 2024/01/30 (or 2024/01).",
      "formattedType": "string"
    },
    {
      "name": "granularity",
      "type": "string",
      "inlineType": {
        "name": "DateGranularity",
        "type": "union",
        "values": [
          "day",
          "month"
        ]
      },
      "optional": true,
      "description": "Specifies the granularity at which users will be able to select a date.\nDefaults to `day`.",
      "formattedType": "string"
    },
    {
      "name": "inputFormat",
      "type": "string",
      "inlineType": {
        "name": "EditableDateFormat",
        "type": "union",
        "values": [
          "iso",
          "slashed"
        ]
      },
      "optional": true,
      "description": "Specifies the date format to use when the format is 'long-localized' and editing the date.\nThe format of the input as it is being interacted with. It can take the following values:\n* `iso`: ISO 8601 format without time, e.g.: 2024-01-30 (or 2024-01).\n* `slashed`: similar to ISO 8601 but with '/' in place of '-'. e.g.: 2024/01/30 (or 2024/01).",
      "formattedType": "string"
    },
    {
      "name": "invalid",
      "type": "boolean",
      "optional": true,
      "description": "Overrides the invalidation state. Usually the invalid state\ncomes from the parent `FormField`component,\nhowever sometimes you need to override its\nstate when you have more than one input within a\nsingle form field.",
      "formattedType": "boolean"
    },
    {
      "name": "locale",
      "type": "string",
      "optional": true,
      "description": "Specifies the locale to use to render month names and determine the starting day of the week.\nIf you don't provide this, the locale is determined by the page and browser locales.\nSupported values and formats are listed in the [JavaScript Intl API specification](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).",
      "formattedType": "string"
    },
    {
      "name": "name",
      "type": "string",
      "optional": true,
      "description": "Specifies the name of the control used in HTML forms.",
      "formattedType": "string"
    },
    {
      "name": "nativeInputAttributes",
      "type": "NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>",
      "inlineType": {
        "name": "NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>",
        "type": "union",
        "values": [
          "Omit<React.InputHTMLAttributes<HTMLInputElement>, \"children\">",
          "Record<`data-${string}`, string>",
          "{ readonly ref?: React.Ref<HTMLInputElement> | undefined; }"
        ]
      },
      "optional": true,
      "description": "Attributes to add to the native `input` element.\nSome attributes will be automatically combined with internal attribute values:\n- `className` will be appended.\n- Event handlers will be chained, unless the default is prevented.\n\nWe do not support using this attribute to apply custom styling.\n\nPass a `ref` to access the native element for measurement, observation, or third-party integration.\nFor actions such as focus or selection, use the component's explicit ref methods;\noperations performed directly on the native element may bypass the built-in component's behaviors.",
      "systemTags": [
        "core"
      ],
      "formattedType": "NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>"
    },
    {
      "name": "placeholder",
      "type": "string",
      "optional": true,
      "description": "Specifies the placeholder text rendered when the value is an empty string.",
      "formattedType": "string"
    },
    {
      "name": "readOnly",
      "type": "boolean",
      "optional": true,
      "description": "Specifies if the control is read-only, which prevents the\nuser from modifying the value but includes it in a form\nsubmission. A read-only control can receive focus.\n\nDon't use read-only inputs outside a form.",
      "formattedType": "boolean"
    },
    {
      "name": "value",
      "type": "string",
      "optional": false,
      "description": "The current input value, in YYYY-MM-DD format.",
      "formattedType": "string"
    },
    {
      "name": "warning",
      "type": "boolean",
      "optional": true,
      "description": "Overrides the warning state. Usually the warning state\ncomes from the parent `FormField`component,\nhowever sometimes you need to override its\nstate when you have more than one input within a\nsingle form field.\nWhen you use it, provide additional context with\ninformation on the input state, and associate it\nwith the input using `ariaDescribedby`.",
      "formattedType": "boolean"
    }
  ],
  "events": [
    {
      "name": "onBlur",
      "description": "Called when input focus is removed from the UI control.",
      "cancelable": false
    },
    {
      "name": "onChange",
      "description": "Called whenever a user changes the input value (by typing or pasting).\nThe event `detail` contains the current value of the field.",
      "cancelable": false,
      "detailType": "BaseChangeDetail",
      "detailInlineType": {
        "name": "BaseChangeDetail",
        "type": "object",
        "properties": [
          {
            "name": "value",
            "optional": false,
            "type": "string"
          }
        ]
      },
      "formattedDetailType": "BaseChangeDetail {\n  value: string\n}"
    },
    {
      "name": "onFocus",
      "description": "Called when input focus is moved to the UI control.",
      "cancelable": false
    }
  ],
  "path": "/components/date-input"
}