import {Story, Meta, Canvas} from '@storybook/addon-docs';
import {DocButtonComponent} from "./doc-button/doc-button.component";
import * as stories from './doc-button/doc-button.stories';

<Meta title="Addons/Docs/DuplicateStories" component={DocButtonComponent} />

# Duplicate stories

Using the same component more than once. Note the imported story can only be used once and thereafter the links have to be used

<Canvas>
  <Story story={stories.Basic}/>
</Canvas>

<Canvas>
  <Story id="addons-docs-duplicatestories--basic" />
</Canvas>

<Canvas>
  <Story id="addons-docs-duplicatestories--basic" />
</Canvas>
