import React from "react"; // @ts-ignore-next-line: TS hates that this isn't part of the package.json vite magic import { Banner } from "@sproutsocial/seeds-react-banner"; import { Box } from "@sproutsocial/seeds-react-box"; import { Icon } from "@sproutsocial/seeds-react-icon"; import { Link } from "./"; import { Text } from "@sproutsocial/seeds-react-text"; import type { Meta, StoryObj } from "@storybook/react"; const meta: Meta = { title: "Components/Link", component: Link, args: { href: "?path=/story/components-button--primary", children: "Normal link", external: false, }, }; export default meta; type Story = StoryObj; export const NormalLink: Story = { args: { href: "?path=/story/components-button--primary", children: "Normal link", external: false, }, }; export const ExternalLink: Story = { render: (args) => ( External link ), args: { href: "#YouClickedAnExternalLink", external: true, children: "Opens in a new tab", }, }; export const LinkAsAButton: Story = { render: (args) => ( { alert("You clicked a Button that looks like a Link!"); }} > {args.children} ), args: { children: "Primary Link", }, }; /** * A Link without `href` renders as a `