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
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 secondary button variant.
23
23
24
24
```jsx live
25
25
<ButtonGroup>
@@ -28,9 +28,30 @@ 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.
36
+
37
+
`buttonSize` applies to both child types. Because `ActionMenu` supports only `small` and `medium`, it remains `medium` when `buttonSize="large"`. Set `size` on `ActionMenu` to override the inherited size.
The ButtonGroup component can be rendered in different sizes in `medium` and `large`sizes. The default size is `medium`.
54
+
The ButtonGroup component supports `small`, `medium`, and `large`buttons. The default size is`medium`. ActionMenu children support `small` and`medium`.
`Hero.ButtonGroup` accepts up to two `Button` or `ActionMenu` children and applies the primary variant to the first item and the secondary 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.
|`position`| <HeroImagePositionProp /> |`'block-end'`| Controls positioning of the child video element |
222
-
|`poster`|`string`|| URL of the poster image to display before video plays. When set, `posterAltText` and `posterTitle` are required |
223
-
|`posterAltText`|`string`|| Alt text for the poster image. Required when `poster` is set |
224
-
|`posterTitle`|`string`|| Title text displayed on the poster overlay. Required when `poster` is set |
278
+
`position` and `padding` props currently only apply to `gridline` variants. The `default` Hero variant ignores non-default media padding and logs a warning during development.
0 commit comments