A collection of reusable UI components for Retool applications including tooltips, popovers, and badges with accessibility features.
A customizable tooltip component that provides hover-based help text.
Features:
- Mouse hover activation
- Keyboard accessibility (Tab to focus, Escape to close)
- Configurable positioning (top, bottom, left, right)
- Customizable delay before showing
- ARIA compliance for screen readers
Parameters:
tooltipText(string, required) - The text to display in the tooltipcomponentRef(string, optional) - Reference to the Retool component to show tooltip onposition(string, optional) - Tooltip position:top,bottom,left,right(default:top)delay(number, optional) - Delay in milliseconds before showing tooltip (default:500)
A more advanced tooltip with click-to-show functionality and click-outside-to-close behavior.
Features:
- Click to show/hide
- Click outside to close
- Configurable positioning
- Larger content area
- ARIA compliance
Parameters:
content(string, required) - The content to display in the popovertriggerText(string, optional) - The text for the trigger button (default: "Click me")position(string, optional) - Popover position:top,bottom,left,right(default:bottom)
A simple status indicator component with multiple variants and sizes.
Features:
- Multiple color variants (primary, secondary, success, warning, danger)
- Three sizes (small, medium, large)
- Clean, modern design
- Inline display
Parameters:
text(string, required) - The text to display in the badgevariant(string, optional) - Badge variant:primary,secondary,success,warning,danger(default:primary)size(string, optional) - Badge size:small,medium,large(default:medium)
- Drag any of the components onto your Retool canvas
- Configure the required parameters (marked as required above)
- Optionally customize the optional parameters
- The components will render with your specified settings
- ARIA attributes: Uses
role="tooltip"andaria-describedby - Keyboard support: Tab to focus, Escape to close
- Screen reader friendly: Proper semantic markup and descriptions
- Focus management: Tooltip appears on focus, disappears on blur
This component is built using the Retool Custom Component Libraries framework.
- Node.js v20 or later
- Admin permissions in Retool
-
Install dependencies:
npm install
-
Log in to Retool:
npx retool-ccl login
-
Start development mode:
npx retool-ccl dev
-
Deploy when ready:
npx retool-ccl deploy
MIT License - see LICENSE file for details.