# SbTooltip A lightweight tooltip component that appears on hover or focus to provide additional information. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Text | string? | null | Simple text tooltip content | | Placement | SbPlacement | Top | Tooltip placement | | Delay | int | 200 | Delay before showing (ms) | | HideDelay | int | 0 | Delay before hiding (ms) | | MaxWidth | string? | null | Maximum width of tooltip | | AdditionalAttributes | Dictionary\? | null | Additional HTML attributes | ## Templates / Slots | Slot | Type | Description | |------|------|-------------| | ChildContent | RenderFragment | Content to wrap with tooltip | | Content | RenderFragment | Rich tooltip content (replaces Text) | ## CSS Classes - `sb-tooltip-wrapper` - Wrapper element - `sb-tooltip` - Tooltip container - `sb-tooltip--{placement}` - Placement variants ## Accessibility - Uses `role="tooltip"` on the tooltip element - `aria-hidden` toggles with visibility ## Examples ### Basic Usage ```razor Save ``` ### Different Placements ```razor Top Right Bottom Left ``` ### With Delay ```razor Hover me Instant ``` ### Rich Content ```razor Keyboard Shortcut Press Ctrl + S to save Save ``` ### Icon Button Tooltips ```razor ``` ### With Max Width ```razor This is a longer tooltip that will wrap when it exceeds the maximum width setting. ``` ### Icon rail tooltips In an icon rail (e.g. Wish theme's `WishIconRail`), wrap nav items with `SbTooltip` and `Placement="SbPlacement.End"` so the tooltip appears to the right: ```razor ``` ### Disabled Element Tooltip ```razor Delete ``` ### With Hide Delay ```razor Hover me ``` ### Form Field Help ```razor API Key Your API key is used to authenticate requests. Keep it secure and never share it publicly. Learn more ```