Skip to content

Instantly share code, notes, and snippets.

@saigowthamr
Created March 21, 2018 09:21
Show Gist options
  • Select an option

  • Save saigowthamr/d8e85db463efb8bae0c82b77a784ccc0 to your computer and use it in GitHub Desktop.

Select an option

Save saigowthamr/d8e85db463efb8bae0c82b77a784ccc0 to your computer and use it in GitHub Desktop.
Stencil-header component
import { Component, Prop } from "@stencil/core";
@Component({
tag: "my-header",
styleUrl: "my-header.css",
shadow: true
})
export class MyHeader {
@Prop() first: string;
@Prop() second: string;
@Prop() third: string;
render() {
return (
<header>
<nav>
<li>{this.first}</li>
<li>{this.second}</li>
<li>{this.third}</li>
</nav>
</header>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment