CI / lint-and-format (push) Successful in 35s
CI / changeset-check (push) Successful in 30s
CI / unit-tests (push) Successful in 40s
CI / component-tests (push) Successful in 34s
CI / lint-and-format (pull_request) Successful in 43s
CI / changeset-check (pull_request) Successful in 32s
CI / unit-tests (pull_request) Successful in 35s
CI / component-tests (pull_request) Successful in 34s
- stencil does not generate a readme.md in every component. The option was disabled in the configuration - Fixed all prettier errors
19 lines
306 B
TypeScript
19 lines
306 B
TypeScript
import { Component, Host, Prop, h } from '@stencil/core';
|
|
|
|
@Component({
|
|
tag: 'bar-chart',
|
|
styleUrl: 'bar-chart.css',
|
|
shadow: true,
|
|
})
|
|
export class BarChart {
|
|
@Prop() title: string = 'Hello World';
|
|
|
|
render() {
|
|
return (
|
|
<Host>
|
|
<slot>{this.title}</slot>
|
|
</Host>
|
|
);
|
|
}
|
|
}
|