Writing documentation
import { Component, h, Prop } from '@stencil/core';
/**
* This is a sample component
*
* Kompendium will parse the doc blocks and render it using Markdown
*/
@Component({
tag: 'my-component',
shadow: true,
})
export class MyComponent {
/**
* This is a sample property
*/
@Prop()
public name: string;
render() {
return <p>Hello, {this.name}!</p>;
}
}Last updated