Installation
Package manager
Section titled “Package manager”bun add @aejkatappaja/phantom-ui # bunnpm install @aejkatappaja/phantom-ui # npmpnpm add @aejkatappaja/phantom-ui # pnpmyarn add @aejkatappaja/phantom-ui # yarnA postinstall script automatically detects your framework (React, Solid, Qwik) and generates a TypeScript declaration file in your src/ directory. Vue, Svelte, and Angular need no extra setup.
No build step needed. Drop in a script tag:
<script src="https://cdn.jsdelivr.net/npm/@aejkatappaja/phantom-ui/dist/phantom-ui.cdn.js"></script>This bundles Lit and the component into a single ~8kb gzipped file. The <phantom-ui> tag is available immediately.
What gets installed
Section titled “What gets installed”node_modules/@aejkatappaja/phantom-ui/ dist/ phantom-ui.js # ES module (Lit as external) phantom-ui.cdn.js # IIFE standalone (Lit included) phantom-ui.d.ts # TypeScript declarations custom-elements.json # IDE/Storybook manifest package.json LICENSE README.md