{
  "name": "list",
  "componentName": "List",
  "displayName": "List",
  "regions": [],
  "functions": [],
  "properties": [
    {
      "name": "ariaDescribedby",
      "type": "string",
      "optional": true,
      "description": "Adds an aria-describedby to the list.",
      "formattedType": "string"
    },
    {
      "name": "ariaLabel",
      "type": "string",
      "optional": true,
      "description": "Adds an aria-label to the list.",
      "formattedType": "string"
    },
    {
      "name": "ariaLabelledby",
      "type": "string",
      "optional": true,
      "description": "Adds an aria-labelledby to the list.",
      "formattedType": "string"
    },
    {
      "name": "disableItemPaddings",
      "type": "boolean",
      "optional": true,
      "description": "Removes padding around and inside list items.",
      "formattedType": "boolean"
    },
    {
      "name": "disablePaddings",
      "type": "boolean",
      "optional": true,
      "description": "Removes top and bottom padding around the list. Does not apply for sortable lists.",
      "formattedType": "boolean"
    },
    {
      "name": "i18nStrings",
      "type": "DndAreaI18nStrings",
      "inlineType": {
        "name": "DndAreaI18nStrings",
        "type": "object",
        "properties": [
          {
            "name": "dragHandleAriaDescription",
            "optional": true,
            "type": "string"
          },
          {
            "name": "dragHandleAriaLabel",
            "optional": true,
            "type": "string"
          },
          {
            "name": "liveAnnouncementDndDiscarded",
            "optional": true,
            "type": "string"
          },
          {
            "name": "liveAnnouncementDndItemCommitted",
            "optional": true,
            "type": "((initialPosition: number, finalPosition: number, total: number) => string)",
            "inlineType": {
              "name": "(initialPosition: number, finalPosition: number, total: number) => string",
              "type": "function",
              "returnType": "string",
              "parameters": [
                {
                  "name": "initialPosition",
                  "type": "number"
                },
                {
                  "name": "finalPosition",
                  "type": "number"
                },
                {
                  "name": "total",
                  "type": "number"
                }
              ]
            }
          },
          {
            "name": "liveAnnouncementDndItemReordered",
            "optional": true,
            "type": "((initialPosition: number, currentPosition: number, total: number) => string)",
            "inlineType": {
              "name": "(initialPosition: number, currentPosition: number, total: number) => string",
              "type": "function",
              "returnType": "string",
              "parameters": [
                {
                  "name": "initialPosition",
                  "type": "number"
                },
                {
                  "name": "currentPosition",
                  "type": "number"
                },
                {
                  "name": "total",
                  "type": "number"
                }
              ]
            }
          },
          {
            "name": "liveAnnouncementDndStarted",
            "optional": true,
            "type": "((position: number, total: number) => string)",
            "inlineType": {
              "name": "(position: number, total: number) => string",
              "type": "function",
              "returnType": "string",
              "parameters": [
                {
                  "name": "position",
                  "type": "number"
                },
                {
                  "name": "total",
                  "type": "number"
                }
              ]
            }
          }
        ]
      },
      "optional": true,
      "description": "An object containing all the localized strings required by the component.\n\n- `liveAnnouncementDndStarted` ((position: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is picked for reordering.\n- `liveAnnouncementDndDiscarded` (string) - (Optional) Adds a message to be announced by screen readers when a reordering action is canceled.\n- `liveAnnouncementDndItemReordered` ((initialPosition: number, currentPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is being moved.\n- `liveAnnouncementDndItemCommitted` ((initialPosition: number, finalPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when a reordering action is committed.\n- `dragHandleAriaDescription` (string) - (Optional) Adds an ARIA description for the drag handle.\n- `dragHandleAriaLabel` (string) - (Optional) Adds an ARIA label for the drag handle.",
      "i18nTag": true,
      "formattedType": "DndAreaI18nStrings {\n  dragHandleAriaDescription?: string\n  dragHandleAriaLabel?: string\n  liveAnnouncementDndDiscarded?: string\n  liveAnnouncementDndItemCommitted?: (\n    initialPosition: number,\n    finalPosition: number,\n    total: number\n  ) => string\n  liveAnnouncementDndItemReordered?: (\n    initialPosition: number,\n    currentPosition: number,\n    total: number\n  ) => string\n  liveAnnouncementDndStarted?: (\n    position: number,\n    total: number\n  ) => string\n}"
    },
    {
      "name": "items",
      "type": "ReadonlyArray<T>",
      "optional": false,
      "description": "The items to display in the list.",
      "formattedType": "ReadonlyArray<T>"
    },
    {
      "name": "renderItem",
      "type": "(item: T) => { id: string; content: React.ReactNode; secondaryContent?: React.ReactNode; icon?: React.ReactNode; actions?: React.ReactNode; announcementLabel?: string | undefined; }",
      "inlineType": {
        "name": "(item: T) => { id: string; content: React.ReactNode; secondaryContent?: React.ReactNode; icon?: React.ReactNode; actions?: React.ReactNode; announcementLabel?: string | undefined; }",
        "type": "function",
        "returnType": "{ id: string; content: React.ReactNode; secondaryContent?: React.ReactNode; icon?: React.ReactNode; actions?: React.ReactNode; announcementLabel?: string | undefined; }",
        "parameters": [
          {
            "name": "item",
            "type": "T"
          }
        ]
      },
      "optional": false,
      "description": "Render an item. The function should return an object with the following keys:\n* `id` (string) - A unique identifier for the item.\n* `content` (React.ReactNode) - The content of the item.\n* `secondaryContent` (React.ReactNode) - (Optional) Secondary content, for example item description.\n* `icon` (React.ReactNode) - (Optional) An icon, displayed at the start.\n* `actions` (React.ReactNode) - (Optional) Action button(s).\n* `announcementLabel` (string) - (Optional) An announcement label for the item, used when sorting.\n   By default, the `content` is used: a custom label should be provided if `content` is not a string.",
      "formattedType": " (item: T) => {\n  id: string\n  content: React.ReactNode\n  secondaryContent?: React.ReactNode\n  icon?: React.ReactNode\n  actions?: React.ReactNode\n  announcementLabel?: string | undefined\n}"
    },
    {
      "name": "sortable",
      "type": "boolean",
      "optional": true,
      "description": "Makes the list sortable by enabling drag and drop functionality.",
      "formattedType": "boolean"
    },
    {
      "name": "sortDisabled",
      "type": "boolean",
      "optional": true,
      "description": "Disables sorting drag handles. Use this to temporarily prevent users from reordering the list.",
      "formattedType": "boolean"
    },
    {
      "name": "tagOverride",
      "type": "string",
      "inlineType": {
        "name": "\"ol\" | \"ul\"",
        "type": "union",
        "values": [
          "ol",
          "ul"
        ]
      },
      "optional": true,
      "description": "The HTML tag to render. By default `ul` is used for standard lists and `ol` for sortable lists.",
      "formattedType": "string"
    }
  ],
  "events": [
    {
      "name": "onSortingChange",
      "description": "Called when items are reordered in a sortable list.",
      "cancelable": false,
      "detailType": "ListProps.SortingState<T>",
      "detailInlineType": {
        "name": "ListProps.SortingState<T>",
        "type": "object",
        "properties": [
          {
            "name": "items",
            "optional": false,
            "type": "ReadonlyArray<T>"
          }
        ]
      },
      "formattedDetailType": "ListProps.SortingState<T> {\n  items: ReadonlyArray<T>\n}"
    }
  ],
  "path": "/components/list"
}