Skip to content

Commit c2a5f20

Browse files
committed
docs(storybook): add more stories to symbol expand
1 parent 012ffee commit c2a5f20

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

packages/uui-symbol-expand/lib/uui-symbol-expand.story.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import readme from '../README.md?raw';
33
import { html } from 'lit';
44
import type { Meta, StoryObj } from '@storybook/web-components';
55
import { spread } from '../../../storyhelpers';
6+
import { UUISymbolExpandElement } from './uui-symbol-expand.element.js';
7+
import '@umbraco-ui/uui-button/lib';
68

7-
const meta: Meta = {
9+
const meta: Meta<UUISymbolExpandElement> = {
810
id: 'uui-symbol-expand',
911
component: 'uui-symbol-expand',
1012
title: 'Symbols/Expand',
@@ -25,3 +27,15 @@ export default meta;
2527
type Story = StoryObj;
2628

2729
export const Default: Story = {};
30+
31+
export const Open: Story = {
32+
args: { open: true },
33+
};
34+
35+
export const WithButton: Story = {
36+
render: args =>
37+
html`<uui-button look="primary">
38+
Toggle
39+
<uui-symbol-expand ${spread(args)}></uui-symbol-expand>
40+
</uui-button>`,
41+
};

0 commit comments

Comments
 (0)