diff --git a/.changeset/many-roses-hammer.md b/.changeset/many-roses-hammer.md new file mode 100644 index 00000000000..50bb79bc3f6 --- /dev/null +++ b/.changeset/many-roses-hammer.md @@ -0,0 +1,145 @@ +--- +'@primer/react': major +--- +### Button deprecation + +A new set of `Button` components brings a much needed update. Previously to `v35`, `Button` was a set of seven independent components. In `v35`, we now have common `Button` usage guidelines and more convenient API. + +#### Button variants +We now support a variant property which takes values `primary`, `invisible`, `outline` and `danger` + +
| Before (v34) | After (v35) | +
|---|---|
|
+
+```jsx
+
+import { ButtonPrimary, ButtonInvisible,
+ ButtonOutline, ButtonDanger }
+ from '@primer/react'
+
+ |
++ +```jsx + +import { Button } from '@primer/react' + + + + + +``` + + | +
| Before (v34) | After (v35) | +
|---|---|
| + +```jsx + +``` + + | ++ +```jsx + +``` + + | +
| Before (v34) | After (v35) | +
|---|---|
| + +```jsx + +``` + + | +
+
+```jsx
+ |
+
| Before (v34) | After (v35) | +
|---|---|
| + +```jsx + +``` + + | ++ +```jsx + +``` + + | +