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

<Meta isTemplate />

# Search

[Source code](https://github.com/carbon-design-system/carbon/tree/main/packages/react/src/components/Search)
&nbsp;|&nbsp;
[Usage guidelines](https://www.carbondesignsystem.com/components/search/usage)
&nbsp;|&nbsp;
[Accessibility](https://www.carbondesignsystem.com/components/search/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

- [Overview](#overview)
- [Disabled](#disabled)
- [Expandable](#expandable)
- [Component API](#component-api)
- [Feedback](#feedback)

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

## Overview

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

## Disabled

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

## Expandable

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

## 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/Search/Search.mdx).
