You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@@ -29,27 +29,17 @@ To create a button group, wrap `Button` elements in the `ButtonGroup` element. `
29
29
</>
30
30
```
31
31
32
-
## System props
33
-
34
-
<Notevariant="warning">
35
-
36
-
System props are deprecated in all components except [Box](/Box). Please use the [`sx` prop](/overriding-styles) instead.
37
-
38
-
</Note>
39
-
40
-
`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.
41
-
42
32
## Component props
43
33
44
34
Native `<button>` HTML attributes are forwarded to the underlying React `button` component and are not listed below.
| as | String |`button`| sets the HTML tag for the component |
51
-
|fontSize | Number or String ||explicitly sets the font size for the Button text; overrides any value for the `variant` prop|
52
-
| variant | String | 'medium' | a value of `small`, `medium`, or `large` results in smaller or larger Button text size; no effect if `fontSize` prop is set |
| as | String |`button`| sets the HTML tag for the component |
41
+
|sx | SystemStyleObject |{}|Additional styles |
42
+
| variant | String | 'medium' | a value of `small`, `medium`, or `large` results in smaller or larger Button text size; no effect if `fontSize` prop is set |
0 commit comments