-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathindex.ts
30 lines (25 loc) · 943 Bytes
/
index.ts
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
import { LitElement, html } from 'lit'
import { property } from 'lit/decorators.js'
import '../../components/wui-icon/index.js'
import '../../components/wui-text/index.js'
import { elementStyles, resetStyles } from '../../utils/ThemeUtil.js'
import { customElement } from '../../utils/WebComponentsUtil.js'
import styles from './styles.js'
@customElement('wui-promo')
export class WuiPromo extends LitElement {
public static override styles = [resetStyles, elementStyles, styles]
// -- State & Properties -------------------------------- //
@property() text = ''
// -- Render -------------------------------------------- //
public override render() {
return html`<button>
<wui-text variant="small-600" color="bg-100">${this.text}</wui-text>
<wui-icon color="bg-100" size="xs" name="arrowRight"></wui-icon>
</button>`
}
}
declare global {
interface HTMLElementTagNameMap {
'wui-promo': WuiPromo
}
}