discourse/app/assets/javascripts/float-kit/addon/components/d-tooltips.gjs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
484 B
Plaintext
Raw Normal View History

import Component from "@glimmer/component";
import { service } from "@ember/service";
import DHeadlessTooltip from "float-kit/components/d-headless-tooltip";
export default class DTooltips extends Component {
@service tooltip;
<template>
<div id="d-tooltip-portals"></div>
{{#each this.tooltip.registeredTooltips key="id" as |tooltip|}}
{{#if tooltip.detachedTrigger}}
<DHeadlessTooltip @tooltip={{tooltip}} />
{{/if}}
{{/each}}
</template>
}