-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
packages/uui-popover-container/lib/popover-test-story.element.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { defineElement } from '@umbraco-ui/uui-base/lib/registration'; | ||
import { css, html, LitElement } from 'lit'; | ||
/** | ||
* @element popover-test-story | ||
*/ | ||
@defineElement('popover-test-story') | ||
export class UUIPopoverTestStoryElement extends LitElement { | ||
render() { | ||
return html` | ||
<uui-button look="primary" popovertarget="my-popover" | ||
>open popover</uui-button | ||
> | ||
<uui-popover-container id="my-popover" popover> | ||
<div style="width: 200px; border: 1px solid black"> | ||
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Repudiandae | ||
quis eos doloribus dolore. Voluptate dolorum, natus, sit veritatis | ||
impedit dolore enim odio excepturi ex nostrum veniam repellendus | ||
obcaecati aspernatur dolorem. | ||
</div> | ||
</uui-popover-container> | ||
`; | ||
} | ||
|
||
static styles = [css``]; | ||
} | ||
|
||
declare global { | ||
interface HTMLElementTagNameMap { | ||
'popover-test-story': UUIPopoverTestStoryElement; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters