keycloak-scim/src/stories/FormattedLink.stories.tsx
Erik Jan de Wit 86cf4f8501
ux review fixes (#356)
* ux review fixes

fixes: #352

* added max length to description field

* fixed types

* fixed test
2021-02-16 14:18:09 -05:00

32 lines
718 B
TypeScript

import React from "react";
import { 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",
};
export const ApplicationLink = Template.bind({});
ApplicationLink.args = {
title: "Application link",
href: "/application/main",
};