Skip to content

Commit 8794139

Browse files
JesmoDeviOvergaard
andauthored
Modals - add size property to sidebar (#444)
* add size property * add jsdocs --------- Co-authored-by: Jacob Overgaard <[email protected]>
1 parent 2a655db commit 8794139

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/uui-modal/lib/uui-modal-sidebar.element.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
import { css, html, PropertyValueMap } from 'lit';
2-
import { customElement } from 'lit/decorators.js';
2+
import { customElement, property } from 'lit/decorators.js';
33
import { UUIModalElement } from './uui-modal.element';
44

5+
export type UUIModalSidebarSize = 'small' | 'medium' | 'large' | 'full';
6+
57
@customElement('uui-modal-sidebar')
68
export class UUIModalSidebarElement extends UUIModalElement {
9+
/**
10+
* @attr
11+
*/
12+
@property({ reflect: true })
13+
size: UUIModalSidebarSize = 'full';
14+
715
constructor() {
816
super();
917
this.addEventListener('close', this.#onClose.bind(this));

0 commit comments

Comments
 (0)