Skip to content

Instantly share code, notes, and snippets.

@shilman
Last active August 21, 2019 15:48
Show Gist options
  • Save shilman/24ff597c4457054d6166053958e58164 to your computer and use it in GitHub Desktop.
Save shilman/24ff597c4457054d6166053958e58164 to your computer and use it in GitHub Desktop.
MDX Sample
import { Meta, Story, Props } from '@storybook/addon-docs/blocks';
import { Badge } from './Badge';
<Meta title="Demo/Badge" component={Badge} />
# Badge
With `MDX` we write longform markdown documentation for our `Badge` component and embed Doc Blocks inline.
<Props of={Badge} />
<Story name="positive">
<Badge status="positive">Positive</Badge>
</Story>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment