feat: add Tooltip component and update styles in Button and index page

This commit is contained in:
2026-06-23 11:08:24 +02:00
parent 6967f3c7cd
commit 3593305512
4 changed files with 84 additions and 15 deletions
+16
View File
@@ -0,0 +1,16 @@
---
export interface Props {
label: string;
position?: "top" | "bottom" | "left" | "right";
}
const { label, position = "top" } = Astro.props;
---
<span class={`tooltip tooltip--${position}`}>
<slot />
<span class="tooltip__bubble" role="tooltip">{label}</span>
</span>
<style lang="scss">
@use "./_tooltip.scss";
</style>