Sigta UI · Kit
Tooltip
Hover or focus the trigger — 150ms delay, Escape dismisses
show = true, 150)"
@mouseleave="clearTimeout(timer); show = false"
@focusin="timer = setTimeout(() => show = true, 150)"
@focusout="clearTimeout(timer); show = false"
@keydown.escape.window="clearTimeout(timer); show = false"
class="relative inline-flex"
>
Saves a draft, publishes nothing
show = true, 150)"
@mouseleave="clearTimeout(timer); show = false"
@focusin="timer = setTimeout(() => show = true, 150)"
@focusout="clearTimeout(timer); show = false"
@keydown.escape.window="clearTimeout(timer); show = false"
class="relative inline-flex"
>
Copied to clipboard
Source
<div class="flex flex-wrap items-center gap-6 py-8">
<sigta:tooltip text="Saves a draft, publishes nothing">
<sigta:button>Save draft</sigta:button>
</sigta:tooltip>
<sigta:tooltip text="Copied to clipboard">
<sigta:button variant="ghost"><sigta:icon name="copy" size="sm" /> Copy</sigta:button>
</sigta:tooltip>
</div>
Positions
show = true, 150)"
@mouseleave="clearTimeout(timer); show = false"
@focusin="timer = setTimeout(() => show = true, 150)"
@focusout="clearTimeout(timer); show = false"
@keydown.escape.window="clearTimeout(timer); show = false"
class="relative inline-flex"
>
Above (default)
show = true, 150)"
@mouseleave="clearTimeout(timer); show = false"
@focusin="timer = setTimeout(() => show = true, 150)"
@focusout="clearTimeout(timer); show = false"
@keydown.escape.window="clearTimeout(timer); show = false"
class="relative inline-flex"
>
Below
show = true, 150)"
@mouseleave="clearTimeout(timer); show = false"
@focusin="timer = setTimeout(() => show = true, 150)"
@focusout="clearTimeout(timer); show = false"
@keydown.escape.window="clearTimeout(timer); show = false"
class="relative inline-flex"
>
Leading side
show = true, 150)"
@mouseleave="clearTimeout(timer); show = false"
@focusin="timer = setTimeout(() => show = true, 150)"
@focusout="clearTimeout(timer); show = false"
@keydown.escape.window="clearTimeout(timer); show = false"
class="relative inline-flex"
>
Trailing side
Source
<div class="flex flex-wrap items-center gap-6 py-10">
<sigta:tooltip text="Above (default)">
<sigta:button size="sm">Top</sigta:button>
</sigta:tooltip>
<sigta:tooltip text="Below" position="bottom">
<sigta:button size="sm">Bottom</sigta:button>
</sigta:tooltip>
<sigta:tooltip text="Leading side" position="left">
<sigta:button size="sm">Left</sigta:button>
</sigta:tooltip>
<sigta:tooltip text="Trailing side" position="right">
<sigta:button size="sm">Right</sigta:button>
</sigta:tooltip>
</div>