Skip to content

Commit

Permalink
Update BackLink docs (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhorsford authored Jun 11, 2024
1 parent 657d3ca commit 0c2c115
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions stories/Navigation/BackLink.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ import { Meta, StoryObj } from '@storybook/react';
const meta: Meta<typeof BackLink> = {
title: 'Navigation/BackLink',
component: BackLink,
args: { children: 'Link', href: '/', asElement: 'a' },
args: { children: 'Go back', href: '/', asElement: 'a' },
};
export default meta;
type Story = StoryObj<typeof BackLink>;

export const StandardLink: Story = {};
export const OpenInNewTabLink: Story = {

export const BackLinkAsAButton: Story = {
args: {
target: '_blank',
rel: 'noopener noreferrer',
asElement: 'button',
href: false
},
};
};

0 comments on commit 0c2c115

Please sign in to comment.