ember-learn / ember-learn/ember-cli-addon-docs

Use `gts` components for examples

Open
#1,689 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
172
Forks
142
PR merge metrics
No merged PRs in 30d

Description

Is there a way to use `gts` components for the examples? I've tried doing this, but I get runtime errors.

My example component (`menu-default.gts`) for the docs:

```handlebars
// BEGIN-SNIPPET docs-menu-default.gts
import Component from '@glimmer/component';
import UiMenu from '@onwardcare/ui-components/components/ui-menu';
import UiPortalTargets from '@onwardcare/ui-components/components/ui-portal-targets';
import DocsDemo from 'ember-cli-addon-docs/components/docs-demo';

interface Signature {
Element: null;
}

export default class MenuDefault extends Component {




Open Menu


Item 1
Item 2





}
// END-SNIPPET
```

The runtime error I receive:
Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.