storybook/docs/snippets/vue/component-story-static-asset-without-import.ts.mdx
2023-12-27 20:47:00 +00:00

21 lines
395 B
Plaintext

```ts
// MyComponent.stories.ts
import type { Meta, StoryObj } from '@storybook/vue3';
import MyComponent from './MyComponent.vue';
const meta: Meta<typeof MyComponent> = {
component: MyComponent,
};
export default meta;
type Story = StoryObj<typeof MyComponent>;
export const WithAnImage: Story = {
render: () => ({
template: '<img src="image.png" alt="my image" />',
}),
};
```