mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
Adds plugin API:
```js
import fidget from "../components/styleguide/molecules/fidget";
api.addStyleguideSection({
component: fidget,
id: "fidget",
category: "molecules",
priority: 0,
});
```
Removes notes. You can always add `<p class="styleguide-note">` to section components to annotate them.
11 lines
200 B
Handlebars
11 lines
200 B
Handlebars
<h1 class="section-title">
|
|
{{#if this.section}}
|
|
{{section-title this.section.id}}
|
|
{{else}}
|
|
{{i18n this.title}}
|
|
{{/if}}
|
|
</h1>
|
|
|
|
<div class="styleguide-section-contents">
|
|
{{yield}}
|
|
</div> |