storybook/docs/_snippets/my-component-with-global-syntax-highlight.md
2024-06-13 17:53:08 +01:00

24 lines
479 B
Markdown

```md renderer="common" language="mdx"
{/* MyComponent.mdx */}
import { Meta } from '@storybook/blocks';
<Meta title="A storybook story with syntax highlight registered globally" />
# SCSS example
This is a sample Sass snippet example with Storybook docs
{/* Don't forget to replace (") with (```) when you copy the snippet to your own app */}
"scss
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
"
```