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

25 lines
573 B
Plaintext

```ts
// MyComponent.stories.ts
import { Meta, Story } from '@storybook/angular';
import { MyComponent } from './MyComponent.component';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'MyComponent',
component: MyComponent,
} as Meta;
const Template: Story = (args) => ({
props: args,
});
export const ExampleStory = Template.bind({});
ExampleStory.args = {
propertyA: process.env.STORYBOOK_DATA_KEY
};
```