We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88f70fc commit a9d5d68Copy full SHA for a9d5d68
โsrc/components/Link/Link.stories.tsxโ
@@ -0,0 +1,14 @@
1
+import type { Meta, StoryObj } from "@storybook/react";
2
+import { Link } from "./Link";
3
+
4
+export default {
5
+ component: Link,
6
+ parameters: {
7
+ layout: "centered",
8
+ },
9
+ args: {
10
+ children: "๋งํฌ",
11
12
+} satisfies Meta<typeof Link>;
13
14
+export const Basic: StoryObj<typeof Link> = {};
โsrc/components/Link/Link.tsxโ
@@ -15,4 +15,6 @@ interface LinkWithoutChildren extends AnchorHTMLAttributes<HTMLAnchorElement> {
15
underline?: boolean;
16
}
17
18
-export type LinkProps = PropsWithChildren<LinkWithoutChildren>;
+export const Link = ({ children }: PropsWithChildren<LinkWithoutChildren>) => {
19
+ return <>{children}</>;
20
+};
0 commit comments