storybook/docs/snippets/web-components/page-story-slots.ts.mdx
2023-02-16 09:13:06 +08:00

27 lines
431 B
Plaintext

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