import { Meta, Story, Props, Preview } from '@storybook/addon-docs/blocks';
import { ContextMenu } from './context-menu.component';
import { FlowPropsTable, ExternalReferenceLink } from '../../../utils';

<Meta title="Context Menu" component={ContextMenu} />

# Context Menu Context Menu

A pop-over menu

## Default

<Preview withToolbar>
  <Story id="context-menu--default" />
</Preview>

## With Loading State

<Preview withToolbar>
  <Story id="context-menu--loading" />
</Preview>

## Props

<FlowPropsTable ofComponent={ContextMenu} />

## External References

<ExternalReferenceLink
  src="https://www.figma.com/file/r5zKXblbSt0b869OEcOWXu/Patchwork-Web?node-id=637%3A9"
  type="figma"
/>
<ExternalReferenceLink
  src="https://github.com/wealthsimple/patchwork/tree/master/src/core/actions/context-menu"
  type="github"
/>
