Created
March 8, 2018 16:05
-
-
Save prateekjadhwani/351fe687d1910a338cad5d488a8123f4 to your computer and use it in GitHub Desktop.
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
email-label { | |
display: block; | |
padding: 10px 0; | |
} | |
email-label .email-label__container { | |
display: flex; | |
} | |
email-label .email-label__name { | |
color: #a0adb8; | |
margin: 0; | |
padding: 2px 15px; | |
} | |
email-label .email-label__circle { | |
width: 15px; | |
height: 15px; | |
border-radius: 50%; | |
border-width: 3px; | |
border-style: solid; | |
margin: 0; | |
} | |
.email-label--color-ff7b6d { | |
border-color: #ff7b6d; | |
} | |
.email-label--color-05bf80 { | |
border-color: #05bf80; | |
} | |
.email-label--color-c76bef { | |
border-color: #c76bef; | |
} |
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: 'email-label', | |
styleUrl: 'email-label.css' | |
}) | |
export class EmailLabel { | |
@Prop() labelName: string; | |
@Prop() labelColor: string; | |
render() { | |
return ( | |
<div class="email-label__container"> | |
<p class={"email-label__circle email-label--color-" + this.labelColor}></p> | |
<p class="email-label__name">{this.labelName}</p> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment