{
  "name": "form-field",
  "componentName": "FormField",
  "displayName": "FormField",
  "regions": [
    {
      "name": "children",
      "displayName": "control",
      "description": "The primary form control (for example, input, textarea, etc.).",
      "isDefault": true
    },
    {
      "name": "constraintText",
      "description": "Constraint text that's displayed below the control. Use this to provide\nadditional information about valid formats, etc.",
      "isDefault": false,
      "displayName": "constraintText"
    },
    {
      "name": "description",
      "description": "Detailed information about the form field that's displayed below the label.",
      "isDefault": false,
      "displayName": "description"
    },
    {
      "name": "errorText",
      "description": "Text that displays as a validation error message. If this is set to a\nnon-empty string, it will render the form field as invalid.",
      "isDefault": false,
      "displayName": "errorText"
    },
    {
      "name": "info",
      "description": "Use to display an 'Info' link next to the label.",
      "isDefault": false,
      "displayName": "info"
    },
    {
      "name": "label",
      "description": "The main label for the form field.",
      "isDefault": false,
      "displayName": "label"
    },
    {
      "name": "secondaryControl",
      "description": "A secondary control. You can use this for custom actions and content.",
      "isDefault": false,
      "displayName": "secondaryControl"
    },
    {
      "name": "warningText",
      "description": "Text that displays as a validation warning message. If this is set to a\nnon-empty string, it will render the form field in a warning state.",
      "isDefault": false,
      "displayName": "warningText"
    }
  ],
  "functions": [],
  "properties": [
    {
      "name": "analyticsMetadata",
      "type": "FormFieldProps.AnalyticsMetadata",
      "inlineType": {
        "name": "FormFieldProps.AnalyticsMetadata",
        "type": "object",
        "properties": [
          {
            "name": "errorContext",
            "optional": true,
            "type": "ErrorContext",
            "inlineType": {
              "name": "ErrorContext",
              "type": "object",
              "properties": [
                {
                  "name": "errorCategory",
                  "optional": false,
                  "type": "string",
                  "inlineType": {
                    "name": "ErrorCategory",
                    "type": "union",
                    "values": [
                      "OTHER",
                      "INPUT_VALIDATION",
                      "PERMISSION_IAM",
                      "RESOURCE_AVAILABILITY",
                      "NETWORK_CONNECTIVITY",
                      "SERVICE_QUOTAS_LIMITS",
                      "CONFIGURATION_CONFLICTS",
                      "API_SPECIFIC"
                    ]
                  }
                },
                {
                  "name": "errorMessage",
                  "optional": false,
                  "type": "string"
                },
                {
                  "name": "errorSubCategory",
                  "optional": false,
                  "type": "string",
                  "inlineType": {
                    "name": "ErrorSubCategory",
                    "type": "union",
                    "values": [
                      "DATA_FORMAT_ISSUES",
                      "PARAMETER_VALIDATION_ISSUES",
                      "ACCESS_CONTROL_ISSUES",
                      "IDENTITY_MANAGEMENT_PROBLEMS",
                      "RESOURCE_STATE_ISSUES",
                      "RESOURCE_CAPACITY_PROBLEMS",
                      "CONNECTION_PROBLEMS",
                      "NETWORK_CONFIGURATION_ISSUES",
                      "RESOURCE_LIMIT_EXCEEDED",
                      "SERVICE_QUOTA_RESTRICTIONS",
                      "SERVICE_INTEGRATION_CONFLICTS",
                      "RESOURCE_CONFIGURATION_MISMATCHES",
                      "SERVICE_SPECIFIC_OPERATIONS",
                      "API_REQUEST_PROBLEMS",
                      "OTHER"
                    ]
                  }
                }
              ]
            }
          },
          {
            "name": "instanceIdentifier",
            "optional": true,
            "type": "string"
          }
        ]
      },
      "optional": true,
      "description": "Specifies additional analytics-related metadata.\n* `instanceIdentifier` - A unique string that identifies this component instance in your application.\n* `errorContext` - Identifies the error category and sub-category.",
      "analyticsTag": "",
      "formattedType": "FormFieldProps.AnalyticsMetadata {\n  errorContext?: ErrorContext\n  instanceIdentifier?: string\n}"
    },
    {
      "name": "characterCountText",
      "type": "string",
      "optional": true,
      "description": "Character count constraint displayed adjacent to the constraintText. Use\nthis to provide an updated character count on each keypress that is debounced\nfor screen reader users.",
      "formattedType": "string"
    },
    {
      "name": "controlId",
      "type": "string",
      "optional": true,
      "description": "The ID of the primary form control. You can use this to set the\n`for` attribute of a label for accessibility.\n\nIf you don't set this property, the form field automatically generates an ID\nand assigns it to the inner form control (for example, an [input](/components/input) component).\nThis only works well if you're using a single control in the form field.",
      "formattedType": "string"
    },
    {
      "name": "i18nStrings",
      "type": "FormFieldProps.I18nStrings",
      "inlineType": {
        "name": "FormFieldProps.I18nStrings",
        "type": "object",
        "properties": [
          {
            "name": "errorIconAriaLabel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "warningIconAriaLabel",
            "optional": true,
            "type": "string"
          }
        ]
      },
      "optional": true,
      "description": "An object containing all the necessary localized strings required by the component.",
      "i18nTag": true,
      "formattedType": "FormFieldProps.I18nStrings {\n  errorIconAriaLabel?: string\n  warningIconAriaLabel?: string\n}"
    },
    {
      "name": "stretch",
      "type": "boolean",
      "optional": true,
      "description": "Determines whether the primary control should expand to 12 columns.\n\nBy default (or when this property is set to `false`), the primary control\noccupies 9 columns. The secondary control uses the remaining 3 columns.\nOn smaller viewports, both components occupy 12 columns and stack on top of each other.\n\nIf this property is set to `true`, the primary control uses the full\n12 columns. The secondary control (if present) also uses 12 columns, and the two\ncontrols stack on top of each other.",
      "defaultValue": "false",
      "formattedType": "boolean"
    }
  ],
  "events": [],
  "path": "/components/form-field"
}