mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
- Newline following filename comment - Fix URLs in comments - Ensure consistent usage of `ts` vs `tsx` language
27 lines
436 B
Plaintext
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',
|
|
},
|
|
};
|
|
```
|