mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
27 lines
448 B
TypeScript
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,
|
|
},
|
|
};
|