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
<imgsrc={header.src}alt="The different button types" />
15
14
@@ -64,12 +63,6 @@ Primary buttons have top priority in visual hierarchy, and using too many of the
64
63
65
64

66
65
67
-
#### Accent
68
-
69
-
Accent buttons share a similar hierarchical priority, and should also be used sparingly to avoid diluting their effectiveness. Crucially, accent buttons should only be used in the [hero](/components/Hero) and [CTA banner](/components/CTABanner) components.
Secondary buttons are the default button type. Use them for the main actions on a page or form. Secondary buttons are the most common button type and should be used in most cases. They can be paired with a primary button to perform a secondary action, or used on their own.
@@ -130,10 +123,6 @@ Small buttons are meant to be used sparingly. Some use cases can be:
130
123
- Areas where very low priority information might display a CTA.
131
124
- Brand presence inside products where information is compact. For example for in-product banner.
132
125
133
-
### Arrow
134
-
135
-
+The arrow is hidden by default for all button variants except subtle. You can optionally show the arrow when you need to draw attention to a specific, singular button on a page. However, use arrows sparingly on primary actions to avoid diluting their impact. Multiple arrows on the same page will reduce their effectiveness as directional cues.
Copy file name to clipboardExpand all lines: apps/next-docs/content/components/Button/react.mdx
+1-17Lines changed: 1 addition & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,14 +36,6 @@ The `primary` variant of `Button` indicates that the action is of high priority,
36
36
<Button variant="primary">Primary</Button>
37
37
```
38
38
39
-
### Accent
40
-
41
-
The `accent` variant is equally high priority, and should be used only in [Hero](../../Hero) or [CTABanner](../../CTABanner) components.
42
-
43
-
```jsx live
44
-
<Button variant="accent">Accent</Button>
45
-
```
46
-
47
39
### Subtle
48
40
49
41
The `subtle` variant of Button indicates that the action is a low priority one.
@@ -68,14 +60,6 @@ The `subtle` variant of Button indicates that the action is a low priority one.
68
60
<Button block>Full-width button</Button>
69
61
```
70
62
71
-
### Removing the arrow
72
-
73
-
The animated arrow indicator can be removed using the `hasArrow` prop.
74
-
75
-
```jsx live
76
-
<Button hasArrow={false}>No arrow</Button>
77
-
```
78
-
79
63
### Using an icon
80
64
81
65
You can place an icon inside the `Button` in either the leading or the trailing position to enhance the visual context. It is recommended to use an [Octicon](https://primer.style/octicons) here.
@@ -111,5 +95,5 @@ The `Button` component can render as a `button` or `a` HTML element. By default,
111
95
|`variants`| <ButtonVariantsProp /> |`'secondary'`| The styling variations available in Button |
112
96
|`size`| <ButtonSizesProp /> |`'medium'`| The size variations available in Button |
113
97
|`block`|`boolean`|`false`| The full-width option available in Button |
114
-
|`hasArrow`|`boolean`|`true`| A flag to show/hide the arrow icon |
98
+
|`hasArrow`|`boolean`|`false`| Deprecated. The `hasArrow` prop will be removed in a future release.|
115
99
|`disabled`|`boolean`|`false`| Disables the rendered element using `disabled` or `aria-disabled` attributes based on the element type. |
0 commit comments