Skip to content

Commit

Permalink
docs(Button): update button story
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrad77 committed Nov 9, 2024
1 parent 76c2e58 commit aa0820e
Showing 1 changed file with 36 additions and 169 deletions.
205 changes: 36 additions & 169 deletions apps/web/src/components/Button/Button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,195 +38,62 @@ const meta: Meta<typeof Button> = {

export default meta;
type Story = StoryObj<typeof meta>;

/**
* Primary Buttons
*/
export const PrimarySolid: Story = {
args: {
color: "primary",
variant: "solid",
},
};

export const PrimaryOutline: Story = {
args: {
color: "primary",
variant: "outline",
},
};

export const PrimaryText: Story = {
export const Primary: Story = {
args: {
color: "primary",
variant: "text",
},
};

export const PrimarySolidDisabled: Story = {
args: {
color: "primary",
variant: "solid",
disabled: true,
},
};

export const PrimaryOutlineDisabled: Story = {
args: {
color: "primary",
variant: "outline",
disabled: true,
},
};

export const PrimaryTextDisabled: Story = {
args: {
color: "primary",
variant: "text",
disabled: true,
},
};

/**
* Secondary Buttons
*/
export const SecondarySolid: Story = {
args: {
color: "secondary",
variant: "solid",
},
};

export const SecondaryOutline: Story = {
args: {
color: "secondary",
variant: "outline",
},
};

export const SecondaryText: Story = {
args: {
color: "secondary",
variant: "text",
},
};

export const SecondarySolidDisabled: Story = {
args: {
color: "secondary",
variant: "solid",
disabled: true,
},
};

export const SecondaryOutlineDisabled: Story = {
args: {
color: "secondary",
variant: "outline",
disabled: true,
argTypes: {
variant: {
control: {
type: "select",
options: ["solid", "outline", "text"],
},
},
disabled: { control: "boolean" },
},
};

export const SecondaryTextDisabled: Story = {
export const Secondary: Story = {
args: {
color: "secondary",
variant: "text",
disabled: true,
},
};

/**
* Black Buttons
*/
export const BlackSolid: Story = {
args: {
color: "black",
variant: "solid",
},
};

export const BlackOutline: Story = {
args: {
color: "black",
variant: "outline",
},
};

export const BlackText: Story = {
args: {
color: "black",
variant: "text",
},
};

export const BlackSolidDisabled: Story = {
args: {
color: "black",
variant: "solid",
disabled: true,
},
};

export const BlackOutlineDisabled: Story = {
args: {
color: "black",
variant: "outline",
disabled: true,
argTypes: {
variant: {
control: {
type: "select",
options: ["solid", "outline", "text"],
},
},
disabled: { control: "boolean" },
},
};

export const BlackTextDisabled: Story = {
export const Black: Story = {
args: {
color: "black",
variant: "text",
disabled: true,
},
};

/**
* White Buttons
*/
export const WhiteSolid: Story = {
args: {
color: "white",
variant: "solid",
},
};

export const WhiteOutline: Story = {
args: {
color: "white",
variant: "outline",
},
};

export const WhiteText: Story = {
args: {
color: "white",
variant: "text",
},
};

export const WhiteSolidDisabled: Story = {
args: {
color: "white",
variant: "solid",
disabled: true,
argTypes: {
variant: {
control: {
type: "select",
options: ["solid", "outline", "text"],
},
},
disabled: { control: "boolean" },
},
};

export const WhiteOutlineDisabled: Story = {
export const White: Story = {
args: {
color: "white",
variant: "outline",
disabled: true,
},
};

export const WhiteTextDisabled: Story = {
args: {
color: "white",
variant: "text",
disabled: true,
argTypes: {
variant: {
control: {
type: "select",
options: ["solid", "outline", "text"],
},
},
disabled: { control: "boolean" },
},
};

0 comments on commit aa0820e

Please sign in to comment.