<my-element>

A web component just for me.

API

<my-element>

An example element.

Attributes

NameDescriptionTypeDefault
nameThe name to say "Hello" to.string"World"
countThe number of times the button has been clicked.number0
otherAnother property added to docs.number0

Properties

NameAttributeDescriptionTypeDefault
stylesundefinedundefinedCSSResultGroup"css`\n :host {\n display: block;\n border: solid 1px gray;\n padding: 16px;\n max-width: 800px;\n }\n `"
namenameThe name to say "Hello" to.string"World"
countcountThe number of times the button has been clicked.number0
otherotherAnother property added to docs.number0

Slots

NameDescription
This element has a slot

CSS Shadow Parts

NameDescription
buttonThe button
h1The H1 shadows tag docs test