Skip to content

Commit 4033b44

Browse files
committed
docs: move docs into different position
1 parent 39d38cb commit 4033b44

1 file changed

Lines changed: 20 additions & 22 deletions

File tree

  • docs/docs/api/components/keyboard-toolbar

docs/docs/api/components/keyboard-toolbar/index.mdx

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,26 @@ The property that allows to specify custom text for `Done` button.
332332
</KeyboardToolbar>
333333
```
334334

335+
### `KeyboardToolbar.Group`
336+
337+
This component defines a group of inputs that form an isolated navigation region. When the user presses the prev/next arrows on `KeyboardToolbar`, the focus will only cycle through inputs **within the same group**. Inputs outside the group are not reachable from within, and inputs inside the group are not reachable from outside.
338+
339+
This is useful for scenarios like bottom sheets, tab views, or any UI where a subset of inputs should have independent navigation.
340+
341+
```tsx
342+
<BottomSheet>
343+
<KeyboardToolbar.Group>
344+
<TextInput placeholder="First name" />
345+
<TextInput placeholder="Last name" />
346+
<TextInput placeholder="Email" />
347+
</KeyboardToolbar.Group>
348+
</BottomSheet>
349+
```
350+
351+
:::info Toolbar button state
352+
When a grouped input is focused, the toolbar's prev/next buttons reflect the position within that group (not the global list of inputs). For example, the "prev" button will be disabled when focused on the first input of a group.
353+
:::
354+
335355
## Props
336356

337357
### [`View Props`](https://reactnative.dev/docs/view#props)
@@ -387,28 +407,6 @@ const theme: KeyboardToolbarProps["theme"] = {
387407
Don't forget that you need to specify colors for **both** `dark` and `light` theme. The theme will be selected automatically based on the device preferences.
388408
:::
389409

390-
## Components
391-
392-
### `KeyboardToolbar.Group`
393-
394-
This component defines a group of inputs that form an isolated navigation region. When the user presses the prev/next arrows on `KeyboardToolbar`, the focus will only cycle through inputs **within the same group**. Inputs outside the group are not reachable from within, and inputs inside the group are not reachable from outside.
395-
396-
This is useful for scenarios like bottom sheets, tab views, or any UI where a subset of inputs should have independent navigation.
397-
398-
```tsx
399-
<BottomSheet>
400-
<KeyboardToolbar.Group>
401-
<TextInput placeholder="First name" />
402-
<TextInput placeholder="Last name" />
403-
<TextInput placeholder="Email" />
404-
</KeyboardToolbar.Group>
405-
</BottomSheet>
406-
```
407-
408-
:::info Toolbar button state
409-
When a grouped input is focused, the toolbar's prev/next buttons reflect the position within that group (not the global list of inputs). For example, the "prev" button will be disabled when focused on the first input of a group.
410-
:::
411-
412410
## Example
413411

414412
```tsx

0 commit comments

Comments
 (0)