mirror of
https://github.com/go-gitea/gitea
synced 2024-11-09 11:31:34 +01:00
13 lines
379 B
JavaScript
13 lines
379 B
JavaScript
|
import tippy from 'tippy.js';
|
||
|
|
||
|
export function createTippy(target, opts) {
|
||
|
return tippy(target, {
|
||
|
appendTo: document.body,
|
||
|
placement: 'top-start',
|
||
|
animation: false,
|
||
|
allowHTML: true,
|
||
|
arrow: `<svg width="16" height="7"><path d="m0 7 8-7 8 7Z" class="tippy-svg-arrow-outer"/><path d="m0 8 8-7 8 7Z" class="tippy-svg-arrow-inner"/></svg>`,
|
||
|
...opts,
|
||
|
});
|
||
|
}
|