useRovingFocus

Импорт

import { useRovingFocus } from '@feugene/granularity/composables/useRovingFocus'

Экспорты

GrRovingOrientationtype
type GrRovingOrientation = 'horizontal' | 'vertical' | 'both' | 'grid'

Какие стрелки ведут по набору.

GrRovingEdgetype
type GrRovingEdge = 'start' | 'end'

Край набора, в который упёрлось движение.

UseRovingFocusOptionsinterface
interface UseRovingFocusOptions<TKey>
UseRovingFocusReturninterface
interface UseRovingFocusReturn<TKey>
useRovingFocusfunction
function useRovingFocus<TKey>(options: UseRovingFocusOptions<TKey>): UseRovingFocusReturn<TKey>

Источник: @feugene/granularity 0.41.0, package.json#exports и dist/types