Files
Shortumation/webapp/src/components/Icons/index.stories.tsx
T
2022-06-19 13:38:43 -04:00

51 lines
958 B
TypeScript

import { ComponentStory } from "@storybook/react";
import { IconBase } from "./base";
import {
PencilIcon,
CheckMarkIcon,
TrashIcon,
InfoIcon,
ArrowIcon,
AddIcon,
ZoomIcon,
GearIcon,
} from ".";
import { ButtonIcon } from "./ButtonIcons";
import { Page } from "components/Page";
export default {
title: "Icons",
component: IconBase,
};
export const IconList: ComponentStory<typeof IconBase> = (args) => {
return (
<Page>
<PencilIcon {...args} />
<CheckMarkIcon {...args} />
<AddIcon {...args} />
<TrashIcon {...args} />
<InfoIcon {...args} />
<ZoomIcon {...args} />
<GearIcon {...args} />
</Page>
);
};
IconList.args = {
size: 2,
color: "red",
};
export const ButtonIconExample: ComponentStory<typeof IconBase> = (args) => {
return (
<Page>
<ButtonIcon icon={<ArrowIcon {...args} />} />
</Page>
);
};
ButtonIconExample.args = {
size: 2,
color: "red",
};