Code

Example

Code

Implementation

import { LitElement, css, html } from 'lit'; import { customElement } from 'lit/decorators.js'; @customElement('zakuni-card') export class ZakuniCard extends LitElement { static styles = css` div { display: inline-block; background: #fff; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); color: black; padding: 1em 2em; } `; render() { return html` <div><slot /></div> `; } }