@blockquote-playground/component-c
v1.0.3
Published
Webcomponent component-c following open-wc recommendations
Maintainers
Readme
<component-c>
An example element.
src/ComponentC.ts:
class: ComponentC, component-c
Fields
| Name | Privacy | Type | Default | Description | Inherited From |
| --------- | ------- | -------- | ------------- | ------------------------------------------------ | -------------- |
| heading | | string | 'Hey there' | The heading to say "Hello" to. | |
| counter | | number | 5 | The number of times the button has been clicked. | |
Methods
| Name | Privacy | Description | Parameters | Return | Inherited From |
| ---------- | ------- | ------------------ | ----------------- | -------- | -------------- |
| sayHello | | Formats a greeting | heading: string | string | |
Events
| Name | Type | Description | Inherited From |
| --------------- | ------------- | -------------------------------- | -------------- |
| counterchange | CustomEvent | Indicates when the count changes | |
Attributes
| Name | Field | Inherited From |
| --------- | ------- | -------------- |
| heading | heading | |
| counter | counter | |
Slots
| Name | Description | | ---- | ----------------------- | | | This element has a slot |
Methods
| Name | Privacy | Description | Parameters | Return | Inherited From |
| ---------- | ------- | ----------- | ---------- | ------ | -------------- |
| #onClick | private | | | | |
Exports
| Kind | Name | Declaration | Module | Package |
| ---- | ------------ | ----------- | ----------------- | ------- |
| js | ComponentC | ComponentC | src/ComponentC.ts | |
src/index.ts:
Exports
| Kind | Name | Declaration | Module | Package |
| ---- | ------------ | ----------- | --------------- | ------- |
| js | ComponentC | ComponentC | ./ComponentC.js | |
src/define/component-c.ts:
Exports
| Kind | Name | Declaration | Module | Package |
| --------------------------- | ------------- | ----------- | ------------------ | ------- |
| custom-element-definition | component-c | ComponentC | /src/ComponentC.js | |
src/styles/component-c-styles.css.ts:
Variables
| Name | Description | Type |
| -------- | ----------- | ---- |
| styles | | |
Exports
| Kind | Name | Declaration | Module | Package |
| ---- | -------- | ----------- | ------------------------------------ | ------- |
| js | styles | styles | src/styles/component-c-styles.css.ts | |
