Table of Contents

Struct FocusRing

Namespace
Velvet
Assembly
Velvet.Docs.dll

Focus state of the element carrying Ref, returned by Hooks.UseFocusRing. Rides the same element-local focus-visible heuristic as the focus-visible: styling variant (a pointer press on the element suppresses the visible state for the focus it causes), so the two surfaces cannot drift.

public readonly struct FocusRing

Properties

IsFocusVisible

True while the element holds focus NOT caused by a pointer press on it — keyboard, gamepad (navigation-event-driven), or programmatic focus.

IsFocused

True while the element holds focus, from any input modality.

Ref

Attach point: pass as the refCallback: argument of any V.* factory. The returned cleanup detaches the listeners (the standard refCallback contract).