Tooltip
Hinweis-Blase bei Hover/Fokus — rein CSS (kein JS), Ebene über layer.dropdown
Beispiele
Über Button (hover/fokus)
Speichert den Auftrag sofort
Unter Badge
ÜberfälligSeit 3 Tagen überfällig
Seitlich (end)
Rechts vom Auslöser
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| text * | string | — | Hinweistext |
| position | string: top | bottom | start | end | "top" | Position |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert) |
| margin | string: standard | none | sm | md | lg | xl | "standard" | Aussenabstand |
| border | string: standard | none | hairline | strong | "standard" | Rahmen |
| radius | string: standard | none | control | surface | pill | "standard" | Ecken-Rundung |
| textColor | string | "" | Textfarbe (Token; leer = Standard) |
| backgroundColor | string | "" | Hintergrundfarbe (Token; leer = Standard) |
| shadow | string: standard | none | sm | md | lg | "standard" | Schatten |
| width | string: standard | full | "standard" | Breite |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | Anker-ID (Sprungziel, z. B. fuer Nav-Links) |
* Pflicht-Prop
Events & Slots
Slot default:
akzeptiert ui.*, component.*
Stellschrauben (Komponenten-Tokens)
Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.
| Token | Default |
|---|---|
--tooltip-color | var(--color-text-default) |
--tooltip-background | var(--material-glass-background) |
--tooltip-border | var(--material-glass-rim-color) |
--tooltip-border-width | var(--material-glass-rim-width) |
--tooltip-shadow | var(--material-glass-raised-shadow) |
Genutzte Design-Tokens
border.hairlinecolor.text.defaultfont.family.defaultlayer.dropdownleading.basesize.1size.2size.3text.xs
LLM-Notizen
# component.tooltip
Hinweis-Blase bei Hover/Fokus um ein Auslöser-Element — rein CSS, kein JS.
## Wann nutzen
- Für kurze Erklärhinweise an einem Icon, Button oder Wort.
- Nicht für dauerhaft sichtbare Notizen oder klickbare Overlays (Popover/Dialog).
## Wichtige Props
- `text` * = Hinweistext (max 200)
- `position` = `top` | `bottom` | `start` | `end` (Default `top`)
## Slots
- `default` * = das Auslöser-Element (`ui.*`/`component.*`, genau 1)
## Beispiel-Node
{ "definition": "component.tooltip", "props": { "text": "Speichert lokal", "position": "top" }, "slots": { "default": [] } }
## Hinweise
- Liegt auf einer Ebene über `layer.dropdown`; erscheint bei Hover und Tastatur-Fokus (A11y).