import { Meta, StoryObj } from "@storybook/angular"; import { ButtonComponent } from "./button.component"; export default { title: "Component Library/Button", component: ButtonComponent, args: { buttonType: "primary", disabled: false, loading: false, }, parameters: { design: { type: "figma", url: "https://www.figma.com/file/Zt3YSeb6E6lebAffrNLa0h/Tailwind-Component-Library?node-id=5115%3A26950", }, }, } as Meta; type Story = StoryObj; export const Primary: Story = { render: (args) => ({ props: args, template: ` Link `, }), args: { buttonType: "primary", }, }; export const Secondary: Story = { ...Primary, args: { buttonType: "secondary", }, }; export const Danger: Story = { ...Primary, args: { buttonType: "danger", }, }; export const Loading: Story = { render: (args) => ({ props: args, template: ` `, }), args: { disabled: false, loading: true, }, }; export const Disabled: Story = { ...Loading, args: { disabled: true, loading: false, }, }; export const DisabledWithAttribute: Story = { render: (args) => ({ props: args, template: ` `, }), args: { disabled: true, loading: false, }, }; export const Block: Story = { render: (args: ButtonComponent) => ({ props: args, template: ` [block]="true" Link block Link `, }), args: { block: true, }, };