useIndicatorFocusRing
@astryxdesign/core v0.7.1 · useIndicatorFocusRing
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
containerRef | Ref<HTMLElement | null> | — | Ref to an element wrapping only the indicator, so its single element child is unambiguously the thing to ring. Required. |
isDisabled | boolean | MaybeRefOrGetter<boolean> | false | Skip the ring; a disabled control is not focusable. |
Returns
| Name | Type | Description |
|---|---|---|
focusProps | { onFocus: (event: FocusEvent) => void, onBlur: () => void } | Bind on the element that owns the focusable input: onFocus to @focusin, onBlur to @focusout. |