Skip to content

Commit 698dfbb

Browse files
authored
Add missing href to ButtonGroup link examples (#1037)
* add missing href to ButtonGroup link examples * update examples to use different API
1 parent b1f4539 commit 698dfbb

File tree

2 files changed

+14
-6
lines changed
  • apps
    • docs/content/components/ButtonGroup
    • next-docs/content/components/ButtonGroup

2 files changed

+14
-6
lines changed

apps/docs/content/components/ButtonGroup/react.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ The ButtonGroup component can be rendered in different sizes in `medium` and `la
4444
The `Button` component can render as a `button` or `a` HTML element. By default, it will render as a `button`.
4545

4646
```jsx live
47-
<ButtonGroup buttonsAs="a">
48-
<Button>This is one link</Button>
49-
<Button>This is another link</Button>
47+
<ButtonGroup>
48+
<Button as="a" href="#">
49+
This is one link
50+
</Button>
51+
<Button as="a" href="#">
52+
This is another link
53+
</Button>
5054
</ButtonGroup>
5155
```
5256

apps/next-docs/content/components/ButtonGroup/react.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ The ButtonGroup component can be rendered in different sizes in `medium` and `la
4444
The `Button` component can render as a `button` or `a` HTML element. By default, it will render as a `button`.
4545

4646
```jsx live
47-
<ButtonGroup buttonsAs="a">
48-
<Button>This is one link</Button>
49-
<Button>This is another link</Button>
47+
<ButtonGroup>
48+
<Button as="a" href="#">
49+
This is one link
50+
</Button>
51+
<Button as="a" href="#">
52+
This is another link
53+
</Button>
5054
</ButtonGroup>
5155
```
5256

0 commit comments

Comments
 (0)