Created
September 28, 2021 03:04
-
-
Save lmartim/6996e4dfcda2726b5bfb31f1602a5624 to your computer and use it in GitHub Desktop.
Header component using color token
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
<template> | |
<h1>{{ text }}</h1> | |
</template> | |
<script> | |
import { defineComponent } from "vue"; | |
export default defineComponent({ | |
props: { | |
text: { | |
type: String, | |
default: "Hello World", | |
}, | |
}, | |
}); | |
</script> | |
<style lang="scss" scoped> | |
h1 { | |
color: $color-base-red; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment