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

36 lines
895 B
TypeScript
Raw Normal View History

import React from "react";
import { Meta, Story } from "@storybook/react";
import { ExternalLink } from "../components/external-link/ExternalLink";
2020-09-23 14:55:05 +00:00
import { ButtonProps } from "@patternfly/react-core";
export default {
title: "External link",
component: ExternalLink,
} as Meta;
2020-09-23 14:55:05 +00:00
const Template: Story<ButtonProps> = (args) => <ExternalLink {...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",
};
export const DisabledLink = Template.bind({});
DisabledLink.args = {
title: "Disabled link",
href: "http://some-other-link.nl/super",
2020-09-23 14:55:05 +00:00
isAriaDisabled: true,
2020-09-21 20:12:53 +00:00
};