This element tag is used to define a custom element’s attributes, and only allowed to be used inside a <custom-element>
To render the attribute’s value, use the <slot>
tag with the attribute’s name as the slot’s name prefixed with @
symbol.
<custom-element name="my-element">
<element-attr name="name" type="string">Default Value</element-attr>
<template>
My name is
<slot name="@name"></slot>
</template>
</custom-element>
<my-element name="R. Pracutian"></my-element>