storybook/docs/snippets/angular/my-component-with-env-variables.mdx.mdx
2021-11-09 01:41:54 +00:00

20 lines
414 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}/>
export const Template = (args) => ({ props: args });
<Canvas>
<Story
name="ExampleStory"
args={{
propertyA: process.env.STORYBOOK_DATA_KEY,
}}>
{Template.bind({})}
</Canvas>
```