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

24 lines
567 B
TypeScript
Raw Normal View History

import React from "react";
import { Meta, Story } from "@storybook/react";
import { ExternalLink } from "../components/external-link/ExternalLink";
export default {
title: "External link",
component: ExternalLink,
} as Meta;
const Template: Story<React.HTMLProps<HTMLAnchorElement>> = (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",
};