keycloak-scim/src/stories/FormattedLink.stories.tsx

33 lines
723 B
TypeScript
Raw Normal View History

import React from "react";
import type { Meta, Story } from "@storybook/react";
import {
FormattedLink,
FormattedLinkProps,
} from "../components/external-link/FormattedLink";
export default {
title: "Formatted link",
component: FormattedLink,
} as Meta;
const Template: Story<FormattedLinkProps> = (args) => (
<FormattedLink {...args} />
);
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",
};