···11-import { createNav, childLocalId, useOnFocusChange, verticalHandler } from "@fiveway/solid";
11+import { createNavnode, childLocalId, useOnFocusChange, verticalHandler } from "@fiveway/solid";
22import { createMemo, createSignal, For } from "solid-js";
3344import { NavItem } from "../NavItem.tsx";
···1212 const [listPosition, setListPosition] = createSignal(0);
1313 const windowRange = () => offsetWindow(items.length, listPosition(), 3);
14141515- const nav = createNav(
1515+ const nav = createNavnode(
1616 "virtual-list",
1717 verticalHandler.compose((node, action, next) => {
1818 if (action.kind === "focus") {
+3-3
packages/fiveway-react/README.md
···4141Now your components can become navigation nodes:
42424343```tsx
4444-import { useNav, horizontalHandler } from "@fiveway/react";
4444+import { useNavnode, horizontalHandler } from "@fiveway/react";
45454646const items = [
4747 { id: "1", label: "One" },
···5050];
51515252function List() {
5353- const nav = useNav("list", horizontalHandler);
5353+ const nav = useNavnode("list", horizontalHandler);
54545555 return (
5656 <nav.Context>
···6464}
65656666function Item(props) {
6767- const nav = useNav(props.item.id, undefined, { order: props.order });
6767+ const nav = useNavnode(props.item.id, undefined, { order: props.order });
68686969 return <li className={nav.isFocused() && "focused"}>{props.item.label}</li>;
7070}
+1-1
packages/fiveway-react/src/index.ts
···3344export { NavigationContext, NavigationProvider, useNavigationContext } from "./context.tsx";
5566-export { type NavOptions, type NavProps, useNav, Nav } from "./node.tsx";
66+export { type NavnodeOptions, type NavnodeProps, useNavnode, Navnode } from "./node.tsx";
7788export {
99 useIsFocused,
···4242Now your components can become navigation nodes:
43434444```tsx
4545-import { createNav, horizontalHandler } from "@fiveway/solid";
4545+import { createNavnode, horizontalHandler } from "@fiveway/solid";
4646import { For } from "solid-js";
47474848const items = [
···5252];
53535454function List() {
5555- const nav = createNav("list", horizontalHandler);
5555+ const nav = createNavnode("list", horizontalHandler);
56565757 return (
5858 <nav.Context>
···6464}
65656666function Item(props) {
6767- const nav = createNav(props.item.id, undefined, {
6767+ const nav = createNavnode(props.item.id, undefined, {
6868 get order() {
6969 return props.order;
7070 },
+1-1
packages/fiveway-solid/src/index.ts
···3344export { NavigationContext, NavigationProvider, useNavigationContext } from "./context.tsx";
5566-export { type NavOptions, type NavProps, createNav, Nav } from "./node.tsx";
66+export { type NavnodeOptions, type NavnodeProps, createNavnode, Navnode } from "./node.tsx";
7788export {
99 useIsFocused,