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