dark Summary web-appcustom-elementelement-attrelement-stateelement-flowglobal-stateimport-elementimport-scriptimport-styleis-visibleis-hiddenrepeat-list trigger-eventlisten-event set-attrset-stateset-timersend-eventhttp-requestrequest-headerrequest-bodyresponse-okresponse-failscripttrigger-element Comparison OperatorsMutation OperatorsData Source
Summary web-appcustom-elementelement-attrelement-stateelement-flowglobal-stateimport-elementimport-scriptimport-styleis-visibleis-hiddenrepeat-list trigger-eventlisten-event set-attrset-stateset-timersend-eventhttp-requestrequest-headerrequest-bodyresponse-okresponse-failscripttrigger-element Comparison OperatorsMutation OperatorsData Source

The main or core Realm framework is the custom element definition tag. It is used to define a custom element without using JavaScript customElements.define() and the complexity. The template tag is required to render the custom element’s content.

Custom Element's name Reference link: <element-attr> Reference link: <element-state> Reference link: <element-flow> Reference link: <import-script> Reference link: <import-style> Reference link: <is-visible> Reference link: <is-hidden> Native element

<custom-element name="my-element">
  <template>
    <h1>Hello World</h1>
  </template>
</custom-element>