Preview
Installation
Usage
Examples
Default
Standard tooltip with a simple text label.
Modular Structure
Tooltips with separate header and shortcut components for maximum flexibility.
Advanced Controlled State
You can use the open prop to programmatically control the tooltip's visibility. This is useful for onboarding or showing critical hints by default.
Visual Variants
Tooltips come in three distinct aesthetics: default, outline, and the signature glass.
Features
Modular Architecture: Decoupled components for
TooltipHeader,TooltipDescription, andTooltipShortcutfor granular control.Minimalist Variants: Focuses on premium fysk aesthetics with
default,outline, andglass(frosted) styles.Optimized Kbd Integration:
TooltipShortcutuses theKbdcomponent with automatic variant-aware color shifts.Native Radix: Built on top of Radix UI primitives for perfect collision detection and accessibility.
Props
TooltipContent
| Prop | Type | Default | Description |
|---|---|---|---|
variant | string | "default" | Visual style: default, outline, glass. |
size | string | "md" | Scale of the tooltip: sm, md, lg. |
showArrow | boolean | false | Whether to display the indicator arrow. |
side | string | "top" | Preferred side of the tooltip. |
sideOffset | number | 4 | Distance from the trigger in pixels. |
Tooltip
| Prop | Type | Default | Description |
|---|---|---|---|
variant | string | - | Sets the default variant for all child components. |
size | string | - | Sets the default size for all child components. |
delayDuration | number | 200 | The duration from when the mouse enters until it opens. |
Accepts all standard props from Radix UI Tooltip primitives.