```md import { Canvas, Meta, Story } from '@storybook/addon-docs'; import Badge from './Badge.vue'; import Icon from './Icon.vue'; # Badge Let's define a story for our `Badge` component: {() => { return { components: { Badge }, template: `Positive`, }; }} We can drop it in a `Canvas` to get a code snippet: {() => { return { components: { Badge }, template: `Negative`, }; }} 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. {() => { return { components: { Badge }, template: `Warning`, }; }} {() => { return { components: { Badge }, template: `Neutral`, }; }} {() => { return { components: { Badge }, template: `Error`, }; }} {() => { return { components: { Badge, Icon }, template: ` with icon `, }; }} ```