storybook/docs/snippets/angular/my-component-with-env-variables.mdx.mdx
2022-07-07 19:05:48 +01:00

20 lines
390 B
Plaintext

```md
<!-- MyComponent.stories.mdx -->
import { Canvas, Meta, Story } from '@storybook/addon-docs';
import { MyComponent } from './my-component.component';
<Meta title="MyComponent" component={MyComponent}/>
<Canvas>
<Story
name="ExampleStory"
args={{
propertyA: process.env.STORYBOOK_DATA_KEY,
}}
render={(args) => ({
props: args,
})} />
</Canvas>
```