mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 14:08:06 +01:00
playground(tooltip): improve
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
<template>
|
||||
<UTooltip text="Tooltip" :shortcuts="['⌘', 'K']" arrow>
|
||||
<UAvatar src="https://avatars.githubusercontent.com/u/739984?v=4" />
|
||||
</UTooltip>
|
||||
<div class="flex flex-col">
|
||||
<UTooltip text="Top" :shortcuts="['⌘', 'T']" :content="{ side: 'top' }" arrow>
|
||||
<UAvatar text="T" />
|
||||
</UTooltip>
|
||||
|
||||
<div class="flex items-center gap-2 -ml-[20px]">
|
||||
<UTooltip text="Left" :shortcuts="['⌘', 'L']" :content="{ side: 'left' }" arrow>
|
||||
<UAvatar text="L" />
|
||||
</UTooltip>
|
||||
|
||||
<UTooltip text="Right" :shortcuts="['⌘', 'R']" :content="{ side: 'right' }" arrow>
|
||||
<UAvatar text="R" />
|
||||
</UTooltip>
|
||||
</div>
|
||||
|
||||
<UTooltip text="Bottom" :shortcuts="['⌘', 'B']" arrow>
|
||||
<UAvatar text="B" />
|
||||
</UTooltip>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user