42 lines
893 B
TypeScript
42 lines
893 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 {...args} Icon={ArrowIcon} />
|
|
</Page>
|
|
}
|
|
ButtonIconExample.args = {
|
|
size: 2,
|
|
color: 'red'
|
|
}
|