import { ArgTypes, Meta, Canvas } from '@storybook/addon-docs/blocks';
import * as StructuredListStories from './StructuredList.stories';
import { stackblitzPrefillConfig } from '../../../previewer/codePreviewer';

<Meta isTemplate />

# StructuredList

[Source code](https://github.com/carbon-design-system/carbon/tree/main/packages/react/src/components/StructuredList)
&nbsp;|&nbsp;
[Usage guidelines](https://www.carbondesignsystem.com/components/structured-list/usage)
&nbsp;|&nbsp;
[Accessibility](https://www.carbondesignsystem.com/components/structured-list/accessibility)

{/* <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> */}

## Table of Contents

- [StructuredList](#structuredList)
  - [Overview](#overview)
  - [Skeleton](#skeleton)
  - [Initial Row Selection](#initial-row-selection)
- [Component API](#component-api)
- [Feedback](#feedback)

{/* <!-- END doctoc generated TOC please keep comment here to allow auto update --> */}

## Overview

<Canvas
  of={StructuredListStories.Default}
  additionalActions={[
    {
      title: 'Open in Stackblitz',
      onClick: () => stackblitzPrefillConfig(StructuredListStories.Default),
    },
  ]}
/>

## Skeleton

<Canvas
  of={StructuredListStories.Skeleton}
  additionalActions={[
    {
      title: 'Open in Stackblitz',
      onClick: () => stackblitzPrefillConfig(StructuredListStories.Skeleton),
    },
  ]}
/>

## Initial Row Selection 
<Canvas
  of={StructuredListStories.InitialSelection}
  additionalActions={[
    {
      title: 'Open in Stackblitz',
      onClick: () => stackblitzPrefillConfig(StructuredListStories.InitialSelection),
    },
  ]}
/>

## Component API

<ArgTypes />

## Feedback

Help us improve this component by providing feedback, asking questions on Slack,
or updating this file on
[GitHub](https://github.com/carbon-design-system/carbon/edit/main/packages/react/src/components/StructuredList/StructuredList.mdx).
