atropos v1

This commit is contained in:
valere
2024-09-03 22:00:55 +02:00
parent 9823438154
commit acb0062d51
3 changed files with 47 additions and 0 deletions

9
plugins/atropos.ts Normal file
View File

@@ -0,0 +1,9 @@
import { defineNuxtPlugin } from '#app';
export default defineNuxtPlugin(() => {
if (process.client) {
import('atropos/element').then(({ default: AtroposComponent }) => {
customElements.define('atropos-component', AtroposComponent);
});
}
});