# Use camelCase for Style Binding Properties ## Rule When using `:style` bindings in Vue, prefer camelCase property names over kebab-case for consistency with JavaScript object syntax and better IDE support. ## Why This Matters - camelCase is the standard JavaScript convention for object properties - Kebab-case properties require quotes, adding visual noise - IDE autocomplete and type checking work better with camelCase - Consistent with how CSS properties are accessed via `element.style` in JavaScript - Vue's auto-prefixing works with both, but camelCase is cleaner ## Bad Code ```vue ``` ## Good Code ```vue ``` ## With Computed Properties ```vue ``` ## Auto-Prefixing with Multiple Values Vue automatically detects and applies vendor prefixes. For properties that need multiple values for cross-browser support, use an array: ```vue ``` ## Combining Static and Dynamic Styles The `:style` directive can coexist with the regular `style` attribute: ```vue ``` ## Merging Multiple Style Objects Use array syntax to merge multiple style objects: ```vue ``` ## References - [Class and Style Bindings - Binding Inline Styles](https://vuejs.org/guide/essentials/class-and-style.html#binding-inline-styles)