Skip to content

Commit

Permalink
feat: add decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
karimim committed Oct 7, 2024
1 parent 0bc7f1d commit 97c8082
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { StoryObj } from '@storybook/web-components';
import type { StoryObj, StoryFn, StoryContext } from '@storybook/web-components';
import { html } from 'lit';
import { MetaExtended } from '@root/types';

Expand All @@ -19,6 +19,9 @@ export default meta;
type Story = StoryObj;

export const Default: Story = {
decorators: [
(story: StoryFn, context: StoryContext) => html` <div>${story(context.args, context)}</div> `,
],
render: () => html`
<p>
This is a paragraph. It is a block of text that is separated from other blocks of text by a
Expand Down

0 comments on commit 97c8082

Please sign in to comment.