Loading...

How a HAX element is built

From the web platform to the HAX layer: what you need to know to make a web component for HAX.

Web component stack

  1. Everything starts from the web component standard. (Web component standard)
  2. Which is written in the three languages every browser speaks. (HTML, CSS, JavaScript)
  3. Four standards make a tag reusable: custom elements, shadow DOM, templates and slots, ES modules. (Custom Elements, Shadow DOM, Templates and slots, ES modules)
  4. Lit is the small library HAX elements extend. (Lit)
  5. The HAX layer: DDD for style, HAXSchema for editing, i18n for languages, simple-icon and SchemaBehaviors. (DDD, HAXSchema, Languages, simple-icon, SchemaBehaviors)
  6. The CLI scaffolds and audits one; tests, Ubiquity and SSR check and ship it. (HAX CLI, Automated testing, Ubiquity, Lit SSR, Web components)
  7. IST 256, HAX Camp and the docs are where people learn this. (IST 256, HAX Camp, Documentation)
  8. The whole stack.