storybook/docs/snippets/web-components/page-story-slots.ts.mdx
Kyle Gach b97d94e005 Address feedback
- Newline following filename comment
- Fix URLs in comments
- Ensure consistent usage of `ts` vs `tsx` language
2023-01-12 14:17:39 -07:00

27 lines
436 B
Plaintext

```ts
// Page.stories.ts
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit-html';
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',
},
};
```