diff --git a/.changeset/purple-buttons-look.md b/.changeset/purple-buttons-look.md new file mode 100644 index 00000000000..10856c1cdfc --- /dev/null +++ b/.changeset/purple-buttons-look.md @@ -0,0 +1,5 @@ +--- +'@primer/components': major +--- + +Buttons no longer accept 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/Buttons.md b/docs/content/Buttons.md index 54e84b11ead..c7eabe8ea38 100644 --- a/docs/content/Buttons.md +++ b/docs/content/Buttons.md @@ -17,9 +17,9 @@ To create a button group, wrap `Button` elements in the `ButtonGroup` element. ` Button Outline Button Primary Button Invisible - window.alert('button clicked')}/> + window.alert('button clicked')} /> - + @@ -29,27 +29,17 @@ To create a button group, wrap `Button` elements in the `ButtonGroup` element. ` ``` -## System props - - - -System props are deprecated in all components except [Box](/Box). Please use the [`sx` prop](/overriding-styles) instead. - - - -`Button` and `ButtonGroup` components get `COMMON` and `LAYOUT` system props. Read our [System Props](/system-props) doc page for a full list of available props. - ## Component props Native `