tp-popup/tp-popup-menu.js

36 lines
589 B
JavaScript
Raw Permalink Normal View History

/**
@license
Copyright (c) 2024 trading_peter
This program is available under Apache License Version 2.0
*/
import { LitElement, html, css } from 'lit';
class TpPopupMenu extends LitElement {
static get styles() {
return [
css`
:host {
display: block;
}
.wrap {
min-width: 120px;
padding: 6px 0;
border-radius: 2px;
}
`
];
}
render() {
return html`
<div class="wrap">
<slot></slot>
</div>
`;
}
}
window.customElements.define('tp-popup-menu', TpPopupMenu);