2023-05-26 15:58:06 +02:00
|
|
|
import { Meta, StoryObj } from "@storybook/angular";
|
2022-08-03 21:40:04 +02:00
|
|
|
|
|
|
|
import { BitIconComponent } from "./icon.component";
|
2024-03-28 15:26:26 +01:00
|
|
|
import * as GenericIcons from "./icons";
|
2022-08-03 21:40:04 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: "Component Library/Icon",
|
|
|
|
component: BitIconComponent,
|
|
|
|
} as Meta;
|
|
|
|
|
2023-05-26 15:58:06 +02:00
|
|
|
type Story = StoryObj<BitIconComponent>;
|
2022-08-03 21:40:04 +02:00
|
|
|
|
2024-03-28 15:26:26 +01:00
|
|
|
export const Default: Story = {
|
2023-05-26 15:58:06 +02:00
|
|
|
args: {
|
2024-03-28 15:26:26 +01:00
|
|
|
icon: GenericIcons.NoAccess,
|
|
|
|
},
|
|
|
|
argTypes: {
|
|
|
|
icon: {
|
|
|
|
options: Object.keys(GenericIcons),
|
|
|
|
mapping: GenericIcons,
|
|
|
|
control: { type: "select" },
|
|
|
|
},
|
2023-05-26 15:58:06 +02:00
|
|
|
},
|
2022-08-03 21:40:04 +02:00
|
|
|
};
|