Editor support / auto-complete
When working with PodOS elements, it is best to use an IDE like IntelliJ IDEA or Visual Studio Code. These tools make it a lot easier to write valid HTML and can also autocomplete PodOS elements and show their documentation.
This is supported by any editor that understands Custom Elements Manifests, e.g. by installing the Web Components Toolkit.
Install Web Components Toolkit
We recommend using the Web Components Toolkit, which is available as a plugin for several editors, like VS Code, JetBrains IDEs, Neovim and Zed.
When installing PodOS via npm, auto-completion and documentation work out of the box. When using it from CDN, you
must either download the custom-elements.json to your working directory or configure WC Toolkit to point to the remote
file.
Either download the manifest file:
or configure WC Toolkit to load it from CDN:
// wc.config.js
export default {
manifestSrc: "https://cdn.jsdelivr.net/npm/@pod-os/elements/dist/custom-elements.json"
}
You might need to restart the editor afterwards.