storybook/docs/snippets/svelte/my-component-story-basic-and-props.js.mdx
2021-05-07 18:07:39 +01:00

21 lines
322 B
Plaintext

```js
// MyComponent.stories.js
import MyComponent from './MyComponent.svelte';
export default {
title: 'Path/To/MyComponent',
component: MyComponent,
};
export const Basic = () => ({
Component: MyComponent,
});
export const WithProp = () => ({
Component: MyComponent,
props:{
prop: 'value',
},
});
```