fleet/frontend/components/CustomLink/CustomLink.stories.tsx
2023-05-03 17:51:33 +01:00

27 lines
448 B
TypeScript

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,
},
};