feat(ui): add Tooltip component and update TUI controls

This commit is contained in:
syntaxbullet
2026-02-09 22:33:40 +01:00
parent 658f4ab841
commit 961383b402
5 changed files with 182 additions and 9 deletions

View File

@@ -5,12 +5,25 @@ interface Props {
options: string[];
value?: string;
title?: string;
description?: string;
}
const { id, label, options, value = options[0], title = "" } = Astro.props;
const {
id,
label,
options,
value = options[0],
title = "",
description = "",
} = Astro.props;
---
<div class="tui-segment" data-segment-id={id} title={title}>
<div
class="tui-segment"
data-segment-id={id}
data-tooltip-title={title}
data-tooltip-desc={description}
>
<span class="tui-segment-label">{label}</span>
<div class="tui-segment-options" id={id} data-value={value}>
{