Hint | Component | The hint element to render inside the composite container as the last child, e.g. <component :is="hint.Hint" />. It positions itself fixed, renders arrow keys with Kbd, and manages its own visibility. Render it unconditionally. |
visible | Ref<boolean> | Whether the hint is currently shown. Hint reads it; a custom hint element can too. |
anchor | Ref<HTMLElement | null> | The focused item the hint is anchored to. null before the first show. |
orientation | ComputedRef<KeyboardHintOrientation> | The resolved orientation, with the default applied. |
onFocus | (event: FocusEvent) => void | Bind to the container's focusin (@focusin), because focus does not bubble. Shows the hint on the first keyboard-focus (:focus-visible) entry from outside the composite. |
onBlur | (event: FocusEvent) => void | Bind to the container's focusout (@focusout). Hides the hint when focus leaves the composite entirely and counts that as a dismissal, so it does not come back for this instance; focus moves within the composite only re-anchor it. |
onKeyDown | (event: KeyboardEvent) => void | Bind to the container's keydown. Dismisses the hint on the first arrow press (the user has discovered the interaction). Never prevents default or stops propagation. |