Skip to content

Commit eb6a415

Browse files
mirkawidoz
authored andcommitted
Docs: Recommend UI Tabs for switching views (WordPress#83516)
* Docs: Recommend UI Tabs for switching views * Docs: Link to Tabs Storybook documentation Co-authored-by: mirka <0mirka00@git.wordpress.org>
1 parent 7345865 commit eb6a415

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/components/src/panel/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,4 @@ The content to display within the panel row.
209209

210210
## Related components
211211

212-
- To divide related sections of content accessed by a horizontal menu, use `TabPanel`
212+
- To divide related sections of content accessed by a horizontal menu, use [`Tabs` from `@wordpress/ui`](https://wordpress.github.io/gutenberg/?path=/docs/design-system-components-tabs--docs).

‎packages/components/src/toggle-group-control/toggle-group-control/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
`ToggleGroupControl` is a form component that lets users choose options represented in horizontal segments. To render options for this control use [`ToggleGroupControlOption`](/packages/components/src/toggle-group-control/toggle-group-control-option/README.md) component.
66

7-
This component is intended for selecting a single persistent value from a set of options, similar to a how a radio button group would work. If you simply want a toggle to switch between views, use a [`TabPanel`](/packages/components/src/tab-panel/README.md) instead.
7+
This component is intended for selecting a single persistent value from a set of options, similar to a how a radio button group would work. If you simply want a toggle to switch between views, use [`Tabs` from `@wordpress/ui`](https://wordpress.github.io/gutenberg/?path=/docs/design-system-components-tabs--docs) instead.
88

99
Only use this control when you know for sure the labels of items inside won't wrap. For items with longer labels, you can consider a [`SelectControl`](/packages/components/src/select-control/README.md) or a [`CustomSelectControl`](/packages/components/src/custom-select-control/README.md) component instead.
1010

‎packages/components/src/toggle-group-control/toggle-group-control/component.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function UnconnectedToggleGroupControl(
9999
*
100100
* This component is intended for selecting a single persistent value from a set of options,
101101
* similar to a how a radio button group would work. If you simply want a toggle to switch between views,
102-
* use a `TabPanel` instead.
102+
* use `Tabs` from `@wordpress/ui` instead.
103103
*
104104
* Only use this control when you know for sure the labels of items inside won't
105105
* wrap. For items with longer labels, you can consider a `SelectControl` or a

0 commit comments

Comments
 (0)