Replies: 2 comments 1 reply
-
@gfellerph If we think about other components, there is also the possibility to use <post-avatar-group>
<post-avatar></post-avatar>
</post-avatar-group>
<post-tab-group>
<post-tab></post-tab>
<post-tab-panel></post-tab-panel>
</post-tab-group> |
Beta Was this translation helpful? Give feedback.
1 reply
-
I was reading again the rest endpoint naming conventions, especially the sections "1.1" and "1.2". Example: <!-- singleton -->
<post-dropdown>
<post-dropdown-item>
<post-dropdown-item-button></post-dropdown-item-button>
<post-dropdown-item-text></post-dropdown-item-text>
</post-dropdown-item>
<post-dropdown-divider />
<post-dropdown-item></post-dropdown-item>
</post-dropdown>
<!-- singleton -->
<post-user>
<post-user-avatar></post-user-avatar>
</post-user>
<!-- singleton -->
<post-pagination>
<post-pagination-prev-button></post-pagination-prev-button>
<!-- collection -->
<post-pagination-items>
<post-pagination-items-link></post-pagination-items-link>
<post-pagination-items-link></post-pagination-items-link>
<post-pagination-items>
<post-pagination-next-button></post-pagination-next-button>
</post-pagination>
<!-- collection -->
<post-tabs>
<!-- singleton -->
<post-tabs-header></post-tabs-header>
<post-tabs-panel></post-tabs-panel>
</post-tabs>
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
What's your prefered way of naming components with a parent/child relationship?
1. Pluralisation with
s
milks -> milk
)2. Appending
-item
to child itemsmilk -> milk-item
)3. Pluralisation with
s
and appending-item
to child items2 votes ·
Beta Was this translation helpful? Give feedback.
All reactions