You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`components/page-components/<component-name>/index.gts`-Maincomponentforcomponent's showcase page which contains references to sub-section components.
-`components/page-components/<component-name>/sub-sections/<sub-section-name>.gts`-Sub-sectionsofthemaincomponent's showcase page. They should contains examples of the main HDS component'sattributes, properties, interactivestates, andotherusecases. Eachmajorsectionoftheshowcaseshouldbebrokenintoitsownsub-sectioncomponent. Whatconstitutesasectioncanbeflexible, butgenerallyitseach`ShwTextH2`plusthecontentbelowit.
import type { ModelFrom } from 'showcase/utils/ModelFromRoute';
167
+
168
+
export type PageComponentsAccordionModel =
169
+
ModelFrom<PageComponentsAccordionRoute>;
170
+
171
+
export default class PageComponentsAccordionRoute extends Route {}
172
+
```
173
+
174
+
### Templates
175
+
Eachcomponentshouldhaveatemplatefileunderthe`templates/page-components/<component-name>.gts`path. Thistemplateshouldcontainthecomponent's index component.
176
+
177
+
Examplefile:
178
+
```gts
179
+
import type { TemplateOnlyComponent } from '@ember/component/template-only';
180
+
181
+
import AccordionIndex from 'showcase/components/page-components/accordion';
0 commit comments