From 8c66a01081562cf307cdced5836ca6ecf35b2d6a Mon Sep 17 00:00:00 2001 From: Nitin Ramnani Date: Mon, 17 Feb 2025 15:12:20 +0530 Subject: [PATCH] Added stories for IconLinkVertical Component Signed-off-by: Nitin Ramnani --- .../IconLinkVertical.stories.tsx | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 packages/core-components/src/components/HeaderIconLinkRow/IconLinkVertical.stories.tsx diff --git a/packages/core-components/src/components/HeaderIconLinkRow/IconLinkVertical.stories.tsx b/packages/core-components/src/components/HeaderIconLinkRow/IconLinkVertical.stories.tsx new file mode 100644 index 0000000000..de5e8144fb --- /dev/null +++ b/packages/core-components/src/components/HeaderIconLinkRow/IconLinkVertical.stories.tsx @@ -0,0 +1,75 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import React from 'react'; +import { IconLinkVertical, IconLinkVerticalProps } from './IconLinkVertical'; +import LinkIcon from '@material-ui/icons/Link'; + +export default { + title: 'Core/IconLinkVertical', + component: IconLinkVertical, +}; + +export const Primary = (args: IconLinkVerticalProps) => ( + +); + +Primary.args = { + color: 'primary', + disabled: false, + href: 'https://backstage.io', + icon: , + label: 'Primary Link', + title: 'Primary Link', +}; + +export const PrimaryDisabled = (args: IconLinkVerticalProps) => ( + +); + +PrimaryDisabled.args = { + color: 'primary', + disabled: true, + href: 'https://backstage.io', + icon: , + label: 'Primary Link', + title: 'Primary Link', +}; + +export const Secondary = (args: IconLinkVerticalProps) => ( + +); + +Secondary.args = { + color: 'secondary', + disabled: false, + href: 'https://backstage.io', + icon: , + label: 'Secondary Link', + title: 'Secondary Link', +}; + +export const SecondaryDisabled = (args: IconLinkVerticalProps) => ( + +); + +SecondaryDisabled.args = { + color: 'secondary', + disabled: true, + href: 'https://backstage.io', + icon: , + label: 'Secondary Link', + title: 'Secondary Link', +};