From 961383b4023db95a20d6300716bcf649cc33dfd8 Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Mon, 9 Feb 2026 22:33:40 +0100 Subject: [PATCH] feat(ui): add Tooltip component and update TUI controls --- src/components/Tooltip.astro | 136 ++++++++++++++++++++++++++++++++ src/components/TuiButton.astro | 13 ++- src/components/TuiSegment.astro | 17 +++- src/components/TuiSlider.astro | 13 ++- src/components/TuiToggle.astro | 12 ++- 5 files changed, 182 insertions(+), 9 deletions(-) create mode 100644 src/components/Tooltip.astro diff --git a/src/components/Tooltip.astro b/src/components/Tooltip.astro new file mode 100644 index 0000000..928c533 --- /dev/null +++ b/src/components/Tooltip.astro @@ -0,0 +1,136 @@ +--- + +--- + +
+
+ +
+
+ +
+
+ + + + diff --git a/src/components/TuiButton.astro b/src/components/TuiButton.astro index a9f803e..ed97f1e 100644 --- a/src/components/TuiButton.astro +++ b/src/components/TuiButton.astro @@ -5,16 +5,25 @@ interface Props { shortcut?: string; variant?: "default" | "primary" | "subtle"; title?: string; + description?: string; } -const { id, label, shortcut, variant = "default", title = "" } = Astro.props; +const { + id, + label, + shortcut, + variant = "default", + title = "", + description = "", +} = Astro.props; ---