API
<my-element>
An example element.
Attributes
| Name | Description | Type | Default |
|---|---|---|---|
| name | The name to say "Hello" to. | string | "World" |
| count | The number of times the button has been clicked. | number | 0 |
| other | Another property added to docs. | number | 0 |
Properties
| Name | Attribute | Description | Type | Default |
|---|---|---|---|---|
| styles | undefined | undefined | CSSResultGroup | "css`\n :host {\n display: block;\n border: solid 1px gray;\n padding: 16px;\n max-width: 800px;\n }\n `" |
| name | name | The name to say "Hello" to. | string | "World" |
| count | count | The number of times the button has been clicked. | number | 0 |
| other | other | Another property added to docs. | number | 0 |
Slots
| Name | Description |
|---|---|
| This element has a slot |
CSS Shadow Parts
| Name | Description |
|---|---|
| button | The button |
| h1 | The H1 shadows tag docs test |