mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-05-29 22:37:44 +02:00
30 lines
487 B
TypeScript
30 lines
487 B
TypeScript
import type { Meta, StoryObj } from "@storybook/nextjs"
|
|
|
|
import { Link } from "./Link.tsx"
|
|
|
|
const meta = {
|
|
title: "Design System/Link",
|
|
component: Link,
|
|
tags: ["autodocs"],
|
|
} satisfies Meta<typeof Link>
|
|
|
|
export default meta
|
|
|
|
type Story = StoryObj<typeof meta>
|
|
|
|
export const Component: Story = {
|
|
args: {
|
|
children: "Link",
|
|
href: "/",
|
|
},
|
|
}
|
|
|
|
export const External: Story = {
|
|
args: {
|
|
children: "Link",
|
|
href: "/",
|
|
target: "_blank",
|
|
isExternal: true,
|
|
},
|
|
}
|