Created
March 21, 2018 09:21
-
-
Save saigowthamr/d8e85db463efb8bae0c82b77a784ccc0 to your computer and use it in GitHub Desktop.
Stencil-header component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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