# @tc39deco/lit-element

> @litElement decorator

Latest version **0.0.2** (published 2023-06-02) · 0 weekly downloads

## Install

```sh
npm install @tc39deco/lit-element
pnpm add @tc39deco/lit-element
yarn add @tc39deco/lit-element
bun add @tc39deco/lit-element
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-06-02 |
| First published | 2023-06-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tc39deco |

## Links

- npm: https://www.npmjs.com/package/@tc39deco/lit-element
- npm.io page: https://npm.io/package/@tc39deco/lit-element

## Recent versions

- 0.0.2 (latest) — 2023-06-02
- 0.0.1 — 2023-06-02

## README

## Usage

```typescript
import {litElement} from '@tc39deco/lit-element';

@litElement()
class MySuperCoolElement extends LitElement {

}

// Now you can use <my-super-cool-element> anywhere in your app.
```

You can also decide to inject your element when you create an instance.

```typescript
import {litElement} from '@tc39deco/lit-element';

@litElement({ intoDaDom: true }
class MyServiceElement extends LitElement {

}

// Creating an object will make your element be automatically
// prepended inside the body of your document.
export const service = new MyServiceElement();
```

## Installation

```
npm add -D @tc39deco/lit-element
```


## Special thanks

to Glenn for the hyphen idea :-P

---
_Source: https://npm.io/package/@tc39deco/lit-element · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
