diff --git a/.changeset/neat-masks-grab.md b/.changeset/neat-masks-grab.md new file mode 100644 index 00000000000..42b767ceafa --- /dev/null +++ b/.changeset/neat-masks-grab.md @@ -0,0 +1,5 @@ +--- +'@primer/components': major +--- + +TabNav no longer accepts styled-system props. Please use the `sx` prop to extend Primer component styling instead. See also https://primer.style/react/overriding-styles for information about `sx` and https://primer.style/react/system-props for context on the removal. diff --git a/docs/content/TabNav.md b/docs/content/TabNav.md index 6dd4e83ce9b..6c156ef90ec 100644 --- a/docs/content/TabNav.md +++ b/docs/content/TabNav.md @@ -23,28 +23,20 @@ This ensures that the NavLink gets `activeClassName='selected'` ``` -## System props - - - -System props are deprecated in all components except [Box](/Box). Please use the [`sx` prop](/overriding-styles) instead. - - - -TabNav and TabNav.Link components get `COMMON` system props. Read our [System Props](/system-props) doc page for a full list of available props. - ## Component props ### TabNav -| Prop name | Type | Description | -| :--------- | :----- | :------------------------------------------------------------- | -| aria-label | String | Used to set the `aria-label` on the top level `