Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 437 Bytes

templates-components-naming.md

File metadata and controls

20 lines (17 loc) · 437 Bytes

VueJS Naming Convention > Templates components Naming

PascalCase

  • In single-file components, string templates, and JSX
  • Should be self closing
  • For example ,

kebab-case

  • In DOM templates
  • Should never be self closing
  • For example ,
<template>
  <div>
    <HelloWorld/>
    <share-button></share-button>
  </div>
</template>