forked from adobecom/milo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
merch-mnemonic-list.js
48 lines (40 loc) · 1.04 KB
/
merch-mnemonic-list.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { html, css, LitElement } from 'lit';
export class MerchMnemonicList extends LitElement {
static styles = css`
:host {
display: flex;
flex-direction: row;
gap: 5px;
margin-bottom: 5px;
margin-right: 10px;
align-items: flex-end;
}
::slotted([slot='icon']) {
display: flex;
justify-content: center;
align-items: center;
height: max-content;
}
::slotted([slot='description']) {
font-size: 14px;
line-height: 21px;
margin: 0;
}
:host .hidden {
display: none;
}
`;
static properties = {
description: { type: String, attribute: true },
};
constructor() {
super();
}
render() {
return html`
<slot name="icon"></slot>
<slot name="description">${this.description}</slot>
`;
}
}
customElements.define('merch-mnemonic-list', MerchMnemonicList);