import { Meta, StoryObj } from "@storybook/angular"; import { BitIconButtonComponent } from "./icon-button.component"; export default { title: "Component Library/Icon Button", component: BitIconButtonComponent, args: { bitIconButton: "bwi-plus", size: "default", disabled: false, }, parameters: { design: { type: "figma", url: "https://www.figma.com/file/Zt3YSeb6E6lebAffrNLa0h/Tailwind-Component-Library?node-id=4369%3A16686", }, }, } as Meta; type Story = StoryObj; export const Default: Story = { render: (args) => ({ props: args, template: `
`, }), args: { size: "default", buttonType: "primary", }, }; export const Small: Story = { ...Default, args: { size: "small", buttonType: "primary", }, }; export const Primary: Story = { render: (args) => ({ props: args, template: ` `, }), args: { buttonType: "primary", }, }; export const Secondary: Story = { ...Primary, args: { buttonType: "secondary", }, }; export const Danger: Story = { ...Primary, args: { buttonType: "danger", }, }; export const Main: Story = { ...Primary, args: { buttonType: "main", }, }; export const Muted: Story = { ...Primary, args: { buttonType: "muted", }, }; export const Light: Story = { render: (args) => ({ props: args, template: `
`, }), args: { buttonType: "light", }, }; export const Contrast: Story = { render: (args) => ({ props: args, template: `
`, }), args: { buttonType: "contrast", }, }; export const Loading: Story = { ...Default, args: { disabled: false, loading: true, }, }; export const Disabled: Story = { ...Default, args: { disabled: true, loading: true, }, };