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
Added `Hero.ButtonGroup` for rendering `Button` and `ActionMenu` children. `Hero.ButtonGroup` is now the defacto way to display buttons in the `Hero`.
6
+
7
+
⚠️ `Hero.PrimaryAction` and `Hero.SecondaryAction` are now deprecated. Please migrate over to `Hero.ButtonGroup` as they will be removed in a future release.
This is the default variant for the ButtonGroup component. The first button in the group is the primary button and the second button is the secondary button.
22
+
This is the default variant for the ButtonGroup component. The first item in the group uses the primary button variant and the second uses the subtle button variant.
23
23
24
24
```jsx live
25
25
<ButtonGroup>
@@ -28,6 +28,25 @@ This is the default variant for the ButtonGroup component. The first button in t
28
28
</ButtonGroup>
29
29
```
30
30
31
+
### Action menus
32
+
33
+
`ButtonGroup` supports up to two `Button` or `ActionMenu` children and applies a default `variant` to each one.
34
+
35
+
Explicit `variant` overrides to `Button` or `ActionMenu.Button` will override the default values.
`Hero.ButtonGroup` accepts up to two `Button` or `ActionMenu` children and applies the primary variant to the first item and the subtle variant to the second. Set `variant` on `Button` or `ActionMenu.Button` to override it.
50
+
51
+
```jsx live
52
+
<Hero>
53
+
<Hero.Heading>This is my super sweet hero heading</Hero.Heading>
@@ -186,8 +238,14 @@ Forwards all props from the [Heading component](/typography/Heading), including
186
238
187
239
Forwards `size` and `weight` props from the [Text component](/typography/Text).
188
240
241
+
### Hero.ButtonGroup
242
+
243
+
Groups up to two [Button](/components/Button) or [ActionMenu](/components/ActionMenu) children. Forwards all props from the [ButtonGroup component](/components/ButtonGroup).
244
+
189
245
### Hero.PrimaryAction
190
246
247
+
Deprecated. Use `Hero.ButtonGroup` with a `Button` child instead.
0 commit comments