Comprehensive demos showing all tooltip features and use cases
Tooltips can be positioned on any side of the trigger element. The position will automatically flip if there isn't enough space.
Use different color variants to match your design system or convey meaning.
Choose from three sizes depending on content length and importance.
Icons are perfect tooltip triggers for providing contextual help.
Provide helpful hints for form fields without cluttering the interface.
Combine tooltips with badges for more detailed status information.
Active
Warning
Offline
Programmatically control tooltips with JavaScript for dynamic content.
// Programmatically show tooltip
RSL.Tooltip.show(element);
// Programmatically hide tooltip
RSL.Tooltip.hide(element);
// Toggle tooltip visibility
RSL.Tooltip.toggle(element);
// Attach tooltip dynamically
RSL.Tooltip.attach('#my-element', {
position: 'right',
variant: 'primary',
size: 'lg'
});
All tooltips are fully accessible out of the box with no additional configuration needed.
Try these interactions:
✅ Automatic ARIA attributes
• role="tooltip"
• id="tooltip-[unique-id]"
• aria-describedby="tooltip-[unique-id]" (added to trigger)
✅ Keyboard Support
• Tab to focus trigger → Tooltip shows
• Escape key → Tooltip hides
• Auto-adds tabindex="0" to non-focusable elements
✅ Focus Management
• Shows on hover AND focus
• Respects focus-visible for keyboard users
✅ Motion & Contrast
• Respects prefers-reduced-motion
• Respects prefers-contrast: high
✅ Touch Support
• Tap to toggle on mobile
• Auto-hide after 3 seconds