# trustcontact web components

Progetto Vue 3 (Vite) per creare Web Components custom element.

## Quick start

```bash
cd web_components
npm i
npm run dev
```

Apri il playground su `http://localhost:5173`.

## Build libreria

```bash
npm run build
```

Output in `dist/`:
- `user-menu.es.js`
- `user-menu.iife.js`

## Uso nel browser

```html
<link rel="stylesheet" href="/path/user-menu.css" />
<script type="module" src="/path/user-menu.es.js"></script>
<trustcontact-greeting name="Fabio"></trustcontact-greeting>
```
