import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { Badge } from './Badge'; import { Icon } from './Icon';
Let's define a story for our Badge
component:
We can drop it in a Preview
to get a code snippet:
We can even preview multiple stories in a block. This gets rendered as a group, but defines individual stories with unique URLs and isolated snapshot tests.
Warning Neutral Error with icon