Naming Convention - Web Components #7448
leagrdv
announced in
Architecture Decisions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
To ensure consistency and clarity across the codebase, all web components must follow a standardized naming pattern.
1. Prefix
All component names must begin with the
post-prefix.This ensures proper scoping and avoids naming collisions with native elements or third-party components.
2. Word separation
Component names must use kebab-case (lowercase words separated by hyphens).
Guidelines:
-)Example:
post-popover-container3. Child components
Components that are intended to be used only as part of a parent component should follow a hierarchical naming pattern.
Rules:
Examples:
post-tabs→post-tab-panelpost-accordion→post-accordion-itemReference
Decision made based on the ticket #5699
All reactions