Skip to content

Instantly share code, notes, and snippets.

@selimdoyranli
selimdoyranli / a_Heading.vue
Created February 8, 2020 18:02
Atomic heading component with h tag size validation. (Vue.js)
<template>
<component class="a-heading" :is="`h${headingLevel}`" :style="{'font-weight': weight}">{{text}}</component>
</template>
<script>
export default {
name: 'a_Heading',
props: {
level: {
type: Number,