README
vue-class-name
Add CSS class name which based on name
property.
import vueClassName from 'v-class-name'
Vue.use(vueClassName)
<template>
<div v-class-name>
<h1 v-class-name="'_Heading'">
heading
</h1>
<div v-class-name="'_Content'">
content
</div>
</div>
</template>
<script>
export default {
name: 'MyComponent'
}
</script>
👇
<div class="MyComponent">
<h1 class="MyComponent_Heading">
heading
</h1>
<div class="MyComponent_Content">
content
</div>
</div>