mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:11:49 +08:00
- Newline following filename comment - Fix URLs in comments - Ensure consistent usage of `ts` vs `tsx` language
27 lines
534 B
Plaintext
27 lines
534 B
Plaintext
```js
|
|
// Page.stories.js
|
|
|
|
import { html } from 'lit-html';
|
|
|
|
export default {
|
|
title: 'Page',
|
|
component: 'demo-page',
|
|
};
|
|
|
|
/*
|
|
*👇 Render functions are a framework specific feature to allow you control on how the component renders.
|
|
* See https://storybook.js.org/docs/7.0/web-components/api/csf
|
|
* to learn how to use render functions.
|
|
*/
|
|
export const CustomFooter = {
|
|
render: (args) => html`
|
|
<demo-page>
|
|
<footer>${args.footer}</footer>
|
|
</demo-page>
|
|
`,
|
|
args: {
|
|
footer: 'Built with Storybook',
|
|
},
|
|
};
|
|
```
|