Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 437 Bytes

components-naming.md

File metadata and controls

15 lines (11 loc) · 437 Bytes

VueJS Naming Convention > Components Naming

PascalCase

  • Begin with an uppercase letter
  • Components names should always be multiwords like "AlertModal", "DropdownMenu" or "NavbarLogo"
  • Child components should use the name of their parent as a preffix. For example a Form component child of AlertModal should be called AlertModalForm
  • Avoid acronyms and abbreviations
export default {
  name: 'AlertModal'
}