storybook/docs/snippets/web-components/page-story-slots.ts.mdx
2023-09-08 22:25:40 +01:00

29 lines
496 B
Plaintext

```ts
// Page.stories.ts
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
type CustomArgs = { footer?: string };
const meta: Meta<CustomArgs> = {
title: 'Page',
component: 'demo-page',
render: ({ footer }) => html`
<demo-page>
<footer>${footer}</footer>
</demo-page>
`,
};
export default meta;
type Story = StoryObj<CustomArgs>;
export const CustomFooter: Story = {
args: {
footer: 'Built with Storybook',
},
};
```