Skip to content

Commit

Permalink
Tabs: add docs about not recommending usage with links
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Dec 20, 2024
1 parent 12f7764 commit eab9126
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/components/src/tabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ const MyControlledTabs = () => (
);
```

#### Using `Tabs` with links

The semantics implemented by the `Tabs` component don't align well with the semantics needed by a list of links. Furthermore, end users usually expect every link to be tabbable, while `Tabs.Tablist` is a [composite](https://w3c.github.io/aria/#composite) widget acting as a single tab stop.

For these reasons, even if the `Tabs` component is fully extensible, we don't recommend using `Tabs` with links, and we don't currently provide any related Storybook example.

### Components and Sub-components

Tabs is comprised of four individual components:
Expand Down

0 comments on commit eab9126

Please sign in to comment.