Skip to content

Commit

Permalink
feat: added customStyling example to Button.stories.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
RichEwin committed Aug 7, 2023
1 parent a62104a commit 79373cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { Meta } from "@storybook/react";
import Button from "./Button";
import "../../utils/storybookStyles.css";

export default {
title: "Button",
Expand All @@ -24,3 +25,7 @@ export const WithSize = () => (
))}
</div>
);

export const WithClassName = () => (
<Button label="I'm styled" className="CustomStyling" size="lg" />
);
3 changes: 3 additions & 0 deletions src/utils/storybookStyles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.CustomStyling {
background-color: #2193b0;
}

0 comments on commit 79373cb

Please sign in to comment.