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.
12 lines
265 B
JavaScript
12 lines
265 B
JavaScript
import Component from "@glimmer/component";
|
|
import { tracked } from "@glimmer/tracking";
|
|
|
|
export default class StyleguideExample extends Component {
|
|
@tracked value = null;
|
|
|
|
constructor() {
|
|
super(...arguments);
|
|
this.value = this.args.initialValue;
|
|
}
|
|
}
|