lrud
lrud copied to clipboard
A React library for managing focus in TV apps.
When navigating through parent nodes while fetching nested child nodes, lrud loses focus of the fetched child nodes.
Hi, I would like to raise an issue I got in my project when using **lrud**: When we add elements into a existing list at a specific position (but not...
This issue captures some discussion in other threads. - three kinds of components: `FocusScreen`, `FocusGroup`, `FocusNode`. - current nav algo involves nested `FocusGroup` and `FocusNode`. - new algo introduced: `SpatialScreen`....
This PR adds some externally exposed types that may be useful using the library Eg: FocusNodeProps['onSelected'] when using `useCallback`
v1.0.0
Here's the list of to-do's before I'd feel comfortable cutting a v1: - [x] More examples (#7 ) - [ ] Ensure types are accurate (#17 ) - [x] Tests...
See: - #29 - #98 - #70 - #18 - #17
See #70 For more context see the comments over #70 --- Todo: - [ ] Consider if all create events should freeze the tree - [ ] Make any necessary...
Using this library with Typescript, taking advantage of the wrapper element inside the `FocusNode`s currently triggers type errors when using `HTMLElement` props Ex (As per docs, using motion.div as custom...
This will need a new Event type; `ActiveEvent` ``` interface ActiveEvent { prevActiveId: Id | null; nextActiveId: Id; prevActiveNode: Id | null; nextActiveNode: Node; } ```