Skip to content

Commit 0c2c115

Browse files
Update BackLink docs (#234)
1 parent 657d3ca commit 0c2c115

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

stories/Navigation/BackLink.stories.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ import { Meta, StoryObj } from '@storybook/react';
44
const meta: Meta<typeof BackLink> = {
55
title: 'Navigation/BackLink',
66
component: BackLink,
7-
args: { children: 'Link', href: '/', asElement: 'a' },
7+
args: { children: 'Go back', href: '/', asElement: 'a' },
88
};
99
export default meta;
1010
type Story = StoryObj<typeof BackLink>;
1111

1212
export const StandardLink: Story = {};
13-
export const OpenInNewTabLink: Story = {
13+
14+
export const BackLinkAsAButton: Story = {
1415
args: {
15-
target: '_blank',
16-
rel: 'noopener noreferrer',
16+
asElement: 'button',
17+
href: false
1718
},
18-
};
19+
};

0 commit comments

Comments
 (0)