Overview
The hints system displays overlays on clickable elements, allowing keyboard-based navigation and interaction. Hints can be shown for both content elements (links, buttons) and browser UI elements.Methods
show()
Find and show hints for clickable elements.Options for configuring hint generation and behavior
Examples
Label Generators
label_generators.prefix_free
Generates prefix-free hint labels using characters fromglide.o.hint_chars. This ensures you never need to press more keys than necessary.
label_generators.numeric
Generates sequential numeric labels starting at 1.Types
HintAction
HintLabelGenerator
HintPicker
Hint
Configuration
Hint behavior can be configured globally viaglide.o:
Hintable Elements
By default, hints are shown for:- Links (
<a>) - Buttons (
<button>) - Input fields (
<input>,<textarea>) - Interactive elements (
<details>,<summary>,<label>) - Elements with click listeners (when
include_click_listenersis enabled) - Elements with specific ARIA roles (
button,link,tab, etc.) - Elements matching the
includeselector - Editable elements (when
editableis true)
See Also
- glide.o.hint_chars - Configure hint label characters
- glide.o.hint_size - Configure hint label size
- glide.o.hint_label_generator - Set default label generator