2020-09-03 17:26:36 +00:00
|
|
|
import React from "react";
|
|
|
|
import { Meta, Story } from "@storybook/react";
|
2021-02-16 19:18:09 +00:00
|
|
|
import {
|
|
|
|
FormattedLink,
|
|
|
|
FormattedLinkProps,
|
|
|
|
} from "../components/external-link/FormattedLink";
|
2020-09-03 17:26:36 +00:00
|
|
|
|
|
|
|
export default {
|
2021-01-11 19:29:52 +00:00
|
|
|
title: "Formatted link",
|
|
|
|
component: FormattedLink,
|
2020-09-03 17:26:36 +00:00
|
|
|
} as Meta;
|
|
|
|
|
2021-02-16 19:18:09 +00:00
|
|
|
const Template: Story<FormattedLinkProps> = (args) => (
|
|
|
|
<FormattedLink {...args} />
|
|
|
|
);
|
2020-09-03 17:26:36 +00:00
|
|
|
|
|
|
|
export const WithTitle = Template.bind({});
|
|
|
|
WithTitle.args = {
|
|
|
|
title: "With title",
|
|
|
|
href: "http://test.nl",
|
|
|
|
};
|
|
|
|
|
|
|
|
export const WithoutTitle = Template.bind({});
|
|
|
|
WithoutTitle.args = {
|
|
|
|
href: "http://some-other-link.nl/super",
|
|
|
|
};
|
2020-09-21 20:12:53 +00:00
|
|
|
|
|
|
|
export const ApplicationLink = Template.bind({});
|
|
|
|
ApplicationLink.args = {
|
|
|
|
title: "Application link",
|
|
|
|
href: "/application/main",
|
|
|
|
};
|