{
  "name": "file-token-group",
  "componentName": "FileTokenGroup",
  "displayName": "FileTokenGroup",
  "regions": [],
  "functions": [],
  "properties": [
    {
      "name": "alignment",
      "type": "string",
      "inlineType": {
        "name": "FileTokenGroupProps.Alignment",
        "type": "union",
        "values": [
          "horizontal",
          "vertical"
        ]
      },
      "optional": true,
      "description": "Specifies the direction in which tokens are aligned (`horizontal | vertical`).",
      "formattedType": "string"
    },
    {
      "name": "i18nStrings",
      "type": "FileTokenGroupProps.I18nStrings",
      "inlineType": {
        "name": "FileTokenGroupProps.I18nStrings",
        "type": "object",
        "properties": [
          {
            "name": "errorIconAriaLabel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "formatFileLastModified",
            "optional": true,
            "type": "((date: Date) => string)",
            "inlineType": {
              "name": "(date: Date) => string",
              "type": "function",
              "returnType": "string",
              "parameters": [
                {
                  "name": "date",
                  "type": "Date"
                }
              ]
            }
          },
          {
            "name": "formatFileSize",
            "optional": true,
            "type": "((sizeInBytes: number) => string)",
            "inlineType": {
              "name": "(sizeInBytes: number) => string",
              "type": "function",
              "returnType": "string",
              "parameters": [
                {
                  "name": "sizeInBytes",
                  "type": "number"
                }
              ]
            }
          },
          {
            "name": "limitShowFewer",
            "optional": true,
            "type": "string"
          },
          {
            "name": "limitShowMore",
            "optional": true,
            "type": "string"
          },
          {
            "name": "removeFileAriaLabel",
            "optional": true,
            "type": "((fileIndex: number, fileName: string) => string)",
            "inlineType": {
              "name": "(fileIndex: number, fileName: string) => string",
              "type": "function",
              "returnType": "string",
              "parameters": [
                {
                  "name": "fileIndex",
                  "type": "number"
                },
                {
                  "name": "fileName",
                  "type": "string"
                }
              ]
            }
          },
          {
            "name": "warningIconAriaLabel",
            "optional": true,
            "type": "string"
          }
        ]
      },
      "optional": true,
      "description": "An object containing all the localized strings required by the component:\n* `removeFileAriaLabel` (function): A function to render the ARIA label for file token remove button. Receives file index and file name.\n* `errorIconAriaLabel` (string): The ARIA label to be shown on the error file icon.\n* `warningIconAriaLabel` (string): The ARIA label to be shown on the warning file icon.\n* `formatFileSize` (function): (Optional) A function that takes file size in bytes, and produces a formatted string.\n* `formatFileLastModified` (function): (Optional) A function that takes the files last modified date, and produces a formatted string.",
      "formattedType": "FileTokenGroupProps.I18nStrings {\n  errorIconAriaLabel?: string\n  formatFileLastModified?: (date: Date) => string\n  formatFileSize?: (\n    sizeInBytes: number\n  ) => string\n  limitShowFewer?: string\n  limitShowMore?: string\n  removeFileAriaLabel?: (\n    fileIndex: number,\n    fileName: string\n  ) => string\n  warningIconAriaLabel?: string\n}"
    },
    {
      "name": "items",
      "type": "ReadonlyArray<FileTokenGroupProps.Item>",
      "optional": false,
      "description": "\nAn array of objects representing token items. Each token has the following properties:\n\n- `file` (string) - File value.\n- `loading` (boolean) - (Optional) Determine whether the token is loading.\n- `errorText` (string) - (Optional) Text that displays as a validation error message.\n- `warningText` (string) - (Optional) - Text that displays as a validation warning message.",
      "formattedType": "ReadonlyArray<FileTokenGroupProps.Item>"
    },
    {
      "name": "limit",
      "type": "number",
      "optional": true,
      "description": "Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.",
      "formattedType": "number"
    },
    {
      "name": "limitShowFewerAriaLabel",
      "type": "string",
      "optional": true,
      "description": "Adds an `aria-label` to the \"Show fewer\" button.\nUse to assign unique labels when there are multiple file token groups with the same `limitShowFewer` label on one page.",
      "formattedType": "string"
    },
    {
      "name": "limitShowMoreAriaLabel",
      "type": "string",
      "optional": true,
      "description": "Adds an `aria-label` to the \"Show more\" button.\nUse to assign unique labels when there are multiple file token groups with the same `limitShowMore` label on one page.",
      "formattedType": "string"
    },
    {
      "name": "readOnly",
      "type": "boolean",
      "optional": true,
      "description": "Specifies if the control is read-only, which prevents the\nuser from modifying the value. A read-only control is still focusable.",
      "formattedType": "boolean"
    },
    {
      "name": "showFileLastModified",
      "type": "boolean",
      "optional": true,
      "description": "Show file last modified timestamp in the token. Use `i18nStrings.formatFileLastModified` to customize it.",
      "formattedType": "boolean"
    },
    {
      "name": "showFileSize",
      "type": "boolean",
      "optional": true,
      "description": "Show file size in the token. Use `i18nStrings.formatFileSize` to customize it.",
      "formattedType": "boolean"
    },
    {
      "name": "showFileThumbnail",
      "type": "boolean",
      "optional": true,
      "description": "Show file thumbnail in the token. Only supported for images.",
      "formattedType": "boolean"
    }
  ],
  "events": [
    {
      "name": "onDismiss",
      "description": "Called when the user clicks on the dismiss button. The token won't be automatically removed.\nMake sure that you add a listener to this event to update your application state.",
      "cancelable": false,
      "detailType": "FileTokenGroupProps.DismissDetail",
      "detailInlineType": {
        "name": "FileTokenGroupProps.DismissDetail",
        "type": "object",
        "properties": [
          {
            "name": "fileIndex",
            "optional": false,
            "type": "number"
          }
        ]
      },
      "formattedDetailType": "FileTokenGroupProps.DismissDetail {\n  fileIndex: number\n}"
    }
  ],
  "path": "/components/file-token-group"
}