---
layout: page.11ty.cjs
title: <echart-embed> ⌲ Home
---

# &lt;echart-embed>

`<echart-embed>` is an awesome element. It's a great introduction to building web components with LitElement, with nice documentation site as well.

## As easy as HTML

<section class="columns">
  <div>

`<echart-embed>` is just an HTML element. You can it anywhere you can use HTML!

```html
<echart-embed></echart-embed>
```

  </div>
  <div>

<echart-embed></echart-embed>

  </div>
</section>

## Configure with attributes

<section class="columns">
  <div>

`<echart-embed>` can be configured with attributed in plain HTML.

```html
<echart-embed name="HTML"></echart-embed>
```

  </div>
  <div>

<echart-embed name="HTML"></echart-embed>

  </div>
</section>

## Declarative rendering

<section class="columns">
  <div>

`<echart-embed>` can be used with declarative rendering libraries like Angular, React, Vue, and lit-html

```js
import {html, render} from 'lit-html';

const name = 'lit-html';

render(
  html`
    <h2>This is a &lt;echart-embed&gt;</h2>
    <echart-embed .name=${name}></echart-embed>
  `,
  document.body
);
```

  </div>
  <div>

<h2>This is a &lt;echart-embed&gt;</h2>
<echart-embed name="lit-html"></echart-embed>

  </div>
</section>
