[feat] folder borders

This commit is contained in:
kwaroran
2023-07-22 20:45:27 +09:00
parent d5a057168d
commit 2e7619ec37
3 changed files with 39 additions and 19 deletions

View File

@@ -1,11 +1,28 @@
import tippy from 'tippy.js'
import 'tippy.js/dist/tippy.css';
import 'tippy.js/themes/translucent.css';
export function tooltip(node:HTMLElement, tip:string) {
const instance = tippy(node, {
content: tip,
animation: 'fade',
arrow: true,
theme: 'translucent',
})
return {
destroy() {
instance.destroy()
}
};
}
export function tooltipRight(node:HTMLElement, tip:string) {
const instance = tippy(node, {
content: tip,
animation: 'fade',
arrow: true,
placement: 'right',
theme: 'translucent',
})
return {
destroy() {