import { Meta, Story, ArgsTable, Canvas } from '@storybook/addon-docs/blocks';
import { SearchInput } from './search-input.component';
import { FlowPropsTable, ExternalReferenceLink } from '../../../utils';

<Meta title="SearchInput" component={SearchInput} />

# Search Input

A search input that displays its results in a drop-down list.

## Stories

### Default

<Canvas>
  <Story id="components-inputs-searchinput--default" />
</Canvas>

### Large, with Not Found Entry

<Canvas>
  <Story id="components-inputs-searchinput--not-found-button-large" />
</Canvas>

### Small, with Not Found Entry

<Canvas>
  <Story id="components-inputs-searchinput--not-found-button-small" />
</Canvas>

### Small

<Canvas>
  <Story id="components-inputs-searchinput--small" />
</Canvas>

### Small and bold

<Canvas>
  <Story id="components-inputs-searchinput--small-bold" />
</Canvas>

### No Label

<Canvas>
  <Story id="components-inputs-searchinput--no-label" />
</Canvas>

### Custom Item Renderer and Separators

<Canvas>
  <Story id="components-inputs-searchinput--custom-item-renderer-and-separators" />
</Canvas>

## Supported Property Mixins

Margin-only spacing:

<Canvas>
  <Story id="components-inputs-searchinput--mixins-margin-only-spacing" />
</Canvas>

Stackee:

<Canvas>
  <Story id="components-inputs-searchinput--mixins-stackee" />
</Canvas>

## Props

<FlowPropsTable ofComponent={SearchInput} />

## External Reference

<ExternalReferenceLink
  src="https://www.figma.com/file/r5zKXblbSt0b869OEcOWXu/Patchwork-Web?node-id=637%3A66"
  type="figma"
/>
<ExternalReferenceLink
  src="https://github.com/wealthsimple/patchwork/tree/master/core/forms/search-input"
  type="github"
/>
