From c72cb73db87397f5b467572e4441f83771ef38a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Leroy?= Date: Thu, 15 Feb 2024 09:48:07 +0100 Subject: [PATCH] doc: fix SpatialNavigationNode table --- docs/api.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/api.md b/docs/api.md index 4a961e35..ba976648 100644 --- a/docs/api.md +++ b/docs/api.md @@ -51,11 +51,8 @@ The `SpatialNavigationNode` component receives the following props: | `onSelect` | `function` | `undefined` | Callback function to be called when the node is selected. | | `orientation` | `'vertical' \| 'horizontal` | `'vertical'` | Determines the orientation of the node. | | `isFocusable` | `boolean` | `false` | Determines if the node is focusable or not. If it's `true`, the `children` prop must be a function that returns a React element and accepts a parameter with a `isFocused` property. If it's `false` or not provided, `children` can be any valid React node. | - -| `alignInGrid` | `boolean` | `false` | Determines whether child lists should behave like a grid. - -| `indexRange` | `number[]` | `undefined` | Determines the indexes when using long nodes in a grid. If a grid row has one `indexRange`, you should specify each element's `indexRange`. You can check for more details in [`GridWithLongNodesPage`](https://github.com/bamlab/react-tv-space-navigation/blob/31bfe1def4a7e18e9e41f26a520090d1b7a5b149/packages/example/src/pages/GridWithLongNodesPage.tsx) example or in [lrud documentation](https://github.com/bbc/lrud/blob/master/docs/usage.md#indexrange). - +| `alignInGrid` | `boolean` | `false` | Determines whether child lists should behave like a grid. | +| `indexRange` | `number[]` | `undefined` | Determines the indexes when using long nodes in a grid. If a grid row has one `indexRange`, you should specify each element's `indexRange`. You can check for more details in [`GridWithLongNodesPage`](https://github.com/bamlab/react-tv-space-navigation/blob/31bfe1def4a7e18e9e41f26a520090d1b7a5b149/packages/example/src/pages/GridWithLongNodesPage.tsx) example or in [lrud documentation](https://github.com/bbc/lrud/blob/master/docs/usage.md#indexrange). | | `children` | `function` or `ReactNode` | `null` | Child elements of the component. It can be a function that returns a React element and accepts a parameter with a `isFocused` property when `isFocusable` is `true`. If `isFocusable` is `false` or not provided, it can be any valid React node. | ## Usage