# nuxt-custom-elements

> Publish your Components as a vue-custom-element standalone build.

Latest version **1.9.2** (published 2023-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install nuxt-custom-elements
pnpm add nuxt-custom-elements
yarn add nuxt-custom-elements
bun add nuxt-custom-elements
```

## Health

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

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.9.2 |
| Published | 2023-06-21 |
| First published | 2020-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 31.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 82 |
| Author | Thorn-Welf Walli |
| Maintainers | gp-dev, sgerbeth, lammpee |
| Keywords | nuxtjs, vuejs, vue-custom-element, custom-element, shadow-dom |

## Links

- npm: https://www.npmjs.com/package/nuxt-custom-elements
- Repository: https://github.com/GrabarzUndPartner/nuxt-custom-elements
- Homepage: https://github.com/GrabarzUndPartner/nuxt-custom-elements#readme
- Issues: https://github.com/GrabarzUndPartner/nuxt-custom-elements/issues
- npm.io page: https://npm.io/package/nuxt-custom-elements

## Dependencies (5)

- [defu](https://npm.io/package/defu.md) 6.1.0
- [clone](https://npm.io/package/clone.md) 2.1.2
- [change-case](https://npm.io/package/change-case.md) 4.1.2
- [vue-custom-element](https://npm.io/package/vue-custom-element.md) 3.3.0
- [@ungap/custom-elements](https://npm.io/package/@ungap/custom-elements.md) 1.3.0

## Recent versions

- 1.9.2 (latest) — 2023-06-21
- 2.0.0-beta.32 (beta) — 2024-11-20
- 2.0.0-beta.31 — 2024-05-18
- 2.0.0-beta.30 — 2024-01-03
- 2.0.0-beta.29 — 2023-12-27
- 2.0.0-beta.28 — 2023-12-26
- 2.0.0-beta.27 — 2023-12-23
- 2.0.0-beta.26 — 2023-11-23
- 2.0.0-beta.25 — 2023-11-08
- 2.0.0-beta.24 — 2023-08-27
- 2.0.0-beta.23 — 2023-08-25
- 2.0.0-beta.22 — 2023-08-25
- 2.0.0-beta.21 — 2023-08-25
- 2.0.0-beta.20 — 2023-08-25
- 2.0.0-beta.19 — 2023-08-22
- … 80 more at https://npm.io/package/nuxt-custom-elements/versions

## README

<p align="right">
  share me:
  <a href="https://twitter.com/intent/tweet?url=https://github.com/GrabarzUndPartner/nuxt-custom-elements&text=Nuxt Custom-Elements allows you to export your existing project components as custom elements for integration into external pages.&via=grabarzpartner&hashtags=vue,nuxt,customElement">
    <img width="24" height="24" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/twitter.svg?sanitize=true"/>
  </a>
  <a href="https://news.ycombinator.com/submitlink?u=https://github.com/GrabarzUndPartner/nuxt-custom-elements&t=nuxt-custom-elements will help you to improve the lighthouse performance score">
    <img width="24" height="24" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/hackernews.svg?sanitize=true"/>
  </a>
  <a href="https://reddit.com/submit?url=https://github.com/GrabarzUndPartner/nuxt-custom-elements&title=Nuxt Custom-Elements allows you to export your existing project components as custom elements for integration into external pages.">
    <img width="24" height="24" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/reddit.svg?sanitize=true"/>
  </a>
  <a href="https://www.facebook.com/sharer.php?u=https://github.com/GrabarzUndPartner/nuxt-custom-elements">
    <img width="24" height="24" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/facebook.svg?sanitize=true"/>
  </a>
  <a href="https://www.xing.com/spi/shares/new?url=https://github.com/GrabarzUndPartner/nuxt-custom-elements">
    <img width="24" height="24" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/xing.svg?sanitize=true"/>
  </a>
  <a href="https://www.linkedin.com/shareArticle?mini=true&url=https://github.com/GrabarzUndPartner/nuxt-custom-elements&title=nuxt-custom-elements&summary=Nuxt Custom-Elements allows you to export your existing project components as custom elements for integration into external pages.">
    <img width="24" height="24" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/linkedin.svg?sanitize=true"/>
  </a>
</p>


![nuxt-custom-elements][logo]

# Nuxt Custom-Elements

[![Grabarz & Partner - Module][grabarz-partner-module-src]][grabarz-partner-href] 

[![main][github-workflow-main-src]][github-workflow-main-href]
[![develop][github-workflow-develop-src]][github-workflow-develop-href]
[![Sonarcloud Status][sonarcloud-src]][sonarcloud-href]

[![npm version][npm-version-latest-src]][npm-version-latest-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]

[![Renovate - Status][renovate-status-src]][renovate-status-href]
[![License][license-src]][license-href]

- [✨ &nbsp;&nbsp;**Release Notes**](./CHANGELOG.md)
- [📖 &nbsp;&nbsp;**Documentation**](https://nuxt-custom-elements.grabarzundpartner.dev/)
- [👁 &nbsp;&nbsp;**Preview**](https://grabarzundpartner.github.io/nuxt-custom-elements-example/)

> Publish your Components as a [vue-custom-element](https://github.com/karol-f/vue-custom-element) standalone build.

Nuxt Custom-Elements allows you to export your existing project components as custom elements for integration into external pages.

## Features

- Using modern and client build
- Export components as widgets
- Use the `Shadow DOM` 🥷
- Use [TailwindCSS](https://tailwindcss.com/) and [Vuetify](https://vuetifyjs.com/) for your widgets
  
📖 &nbsp;&nbsp;[Learn more in the documentation](https://nuxt-custom-elements.grabarzundpartner.dev/)

## Browsers support

For cross-browser [compatibility](https://github.com/ungap/custom-elements#compatibility) (IE11+) the `client` build uses the Polyfill [custom-elements](https://github.com/ungap/custom-elements)

> Polyfill not included in the `modern` build, optional include by option `modernPolyfill` ([Learn more](https://nuxt-custom-elements.grabarzundpartner.dev/options/#modernpolyfill)).

## Development

1. Clone this repository
2. Install dependencies using `npm install` or `yarn install`
3. Start development server using `npm run dev` or `yarn dev`

## Preview

1. Clone this repository
2. Install dependencies using `yarn install` or `npm install`
3. Build and start with express `yarn start:build` or `npm run start:build`
4. Open endpoints via `http://127.0.0.1:3000/` in Browser

## License

[MIT License](./LICENSE)

<!-- Badges -->
[logo]: https://user-images.githubusercontent.com/8287751/108605028-b8193f00-73b1-11eb-9a80-872ab36e3a69.png "nuxt-custom-elements"
[grabarz-partner-module-src]: <https://img.shields.io/badge/Grabarz%20&%20Partner-Module-d19700>
[grabarz-partner-href]: <https://grabarzundpartner.de>

[renovate-status-src]: <https://img.shields.io/badge/renovate-enabled-brightgreen>
[renovate-status-href]: <https://renovate.whitesourcesoftware.com/>

[github-workflow-main-src]: <https://github.com/GrabarzUndPartner/nuxt-custom-elements/workflows/Main/badge.svg?branch=main>
[github-workflow-main-href]: <https://github.com/GrabarzUndPartner/nuxt-custom-elements/actions?query=workflow%3AMain>
[github-workflow-develop-src]: <https://github.com/GrabarzUndPartner/nuxt-custom-elements/workflows/Test/badge.svg?branch=develop>
[github-workflow-develop-href]: <https://github.com/GrabarzUndPartner/nuxt-custom-elements/actions?query=workflow%3ATest>
[dependencies-status-src]: <https://david-dm.org/GrabarzUndPartner/nuxt-custom-elements/status.svg>
[dependencies-status-href]: <https://david-dm.org/GrabarzUndPartner/nuxt-custom-elements>
[dependencies-dev-status-src]: <https://david-dm.org/GrabarzUndPartner/nuxt-custom-elements/dev-status.svg>
[dependencies-dev-status-href]: <https://david-dm.org/GrabarzUndPartner/nuxt-custom-elements?type=dev>

[sonarcloud-src]: <https://sonarcloud.io/api/project_badges/measure?project=GrabarzUndPartner_nuxt-custom-elements&metric=alert_status>
[sonarcloud-href]: <https://sonarcloud.io/dashboard?id=GrabarzUndPartner_nuxt-custom-elements>

[license-src]: https://img.shields.io/npm/l/nuxt-custom-elements.svg?style=flat-square
[license-href]: https://npmjs.com/package/nuxt-custom-elements

[npm-version-latest-src]: https://img.shields.io/npm/v/nuxt-custom-elements/latest.svg?
[npm-version-latest-href]: https://npmjs.com/package/nuxt-custom-elements/v/latest

[npm-downloads-src]: https://img.shields.io/npm/dt/nuxt-custom-elements.svg?style=flat-square
[npm-downloads-href]: https://npmjs.com/package/nuxt-custom-elements

---
_Source: https://npm.io/package/nuxt-custom-elements · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
