<custom-element>
element
An opinionated template for creating a custom element.
Installation
You can install <custom-element>
with npm, Yarn or pnpm.
npm install custom-element-element
# or
yarn add custom-element-element
# or
pnpm install custom-element-element
Usage
Import the custom element in your JavaScript bundle:
import 'custom-element-element';
Then use the custom element in your HTML:
<custom-element></custom-element>
Development
This project uses Vite, a build tool that "aims to provide a faster and leaner development experience for modern web projects." The tests are ran using the Playwright Test test runner, which makes it easy to test custom elements in multiple browsers.
To set up your development environment, run the following command to install dependencies:
npm install
Run the following command to view your changes live in the browser:
npm start
When you want to run the tests, run:
npm test
License
MIT