fleet/frontend/components/CustomLink/CustomLink.stories.tsx

27 lines
448 B
TypeScript
Raw Normal View History

2023-05-03 16:51:33 +00:00
import { Meta, StoryObj } from "@storybook/react";
import CustomLink from ".";
const meta: Meta<typeof CustomLink> = {
title: "Components/CustomLink",
component: CustomLink,
};
export default meta;
type Story = StoryObj<typeof CustomLink>;
export const Basic: Story = {
args: {
url: "https://www.google.com",
text: "Test Link",
},
};
export const ExternalLink: Story = {
args: {
...Basic.args,
newTab: true,
},
};