open-consul/ui/packages/consul-ui/app/components/popover-select/option/index.hbs

13 lines
260 B
Handlebars

{{#let components.MenuItem as |MenuItem|}}
<MenuItem
class={{if selected 'is-active'}}
...attributes
@onclick={{action 'click'}}
@selected={{selected}}
>
<BlockSlot @name="label">
{{yield}}
</BlockSlot>
</MenuItem>
{{/let}}