File tree Expand file tree Collapse file tree 3 files changed +21
-18
lines changed
packages/uui-symbol-expand/lib Expand file tree Collapse file tree 3 files changed +21
-18
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ export class UUISymbolExpandElement extends LitElement {
35
35
* Set this boolean to true for a open/expanded look.
36
36
* @type {boolean }
37
37
* @default false
38
+ * @attr
38
39
*/
39
40
@property ( { type : Boolean , reflect : true } )
40
41
public open = false ;
Original file line number Diff line number Diff line change 1
- import '.' ;
2
-
3
- import { Story } from '@storybook/web-components' ;
1
+ import type { Meta , StoryObj } from '@storybook/web-components' ;
4
2
import { html } from 'lit' ;
3
+
4
+ import './uui-symbol-expand.element' ;
5
+ import type { UUISymbolExpandElement } from './uui-symbol-expand.element' ;
5
6
import readme from '../README.md?raw' ;
6
7
7
- export default {
8
+ const meta : Meta < UUISymbolExpandElement > = {
8
9
id : 'uui-symbol-expand' ,
9
10
title : 'Symbols/Expand' ,
10
11
component : 'uui-symbol-expand' ,
@@ -19,17 +20,16 @@ export default {
19
20
args : {
20
21
open : false ,
21
22
} ,
22
- argTypes : {
23
- value : {
24
- open : { type : 'boolean' } ,
25
- } ,
26
- } ,
27
23
} ;
28
24
29
- export const Overview : Story = props =>
30
- html `< uui-symbol-expand
25
+ export default meta ;
26
+ type Story = StoryObj < UUISymbolExpandElement > ;
27
+
28
+ export const Overview : Story = {
29
+ render : props => html `< uui-symbol-expand
31
30
?open =${ props . open }
32
31
@click =${ ( e : MouseEvent ) => {
33
32
( e . target as any ) . open = ! ( e . target as any ) . open ;
34
33
} } >
35
- </ uui-symbol-expand > ` ;
34
+ </ uui-symbol-expand > ` ,
35
+ } ;
Original file line number Diff line number Diff line change 1
- import '. ';
1
+ import type { Meta, StoryObj } from '@storybook/web-components ';
2
2
3
- import { Story } from '@storybook/web-components ';
4
- import { html } from 'lit ';
3
+ import './ {{> tagnamePartial }} .element ';
4
+ import type { {{ className name }} } from './ {{> tagnamePartial }} .element ';
5
5
import readme from '../README.md?raw';
6
6
7
- export default {
7
+ const meta: Meta< {{className name}}> = {
8
8
id: '{{> tagnamePartial }} ',
9
9
title: '{{ displayName name }} ',
10
10
component: '{{> tagnamePartial }} ',
@@ -18,5 +18,7 @@ export default {
18
18
},
19
19
};
20
20
21
- export const Overview: Story = props =>
22
- html`<{{ > tagnamePartial}}></{{ > tagnamePartial}}>`;
21
+ export default meta;
22
+ type Story = StoryObj<{{className name}}>;
23
+
24
+ export const Overview: Story = {};
You can’t perform that action at this time.
0 commit comments