Skip to content

Commit

Permalink
Add argTypes to bind args variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Krutie committed Apr 4, 2021
1 parent 4b2ac38 commit 876636a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/ui/card/Card.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export default {
}

// Define template for Primary Story
const PrimaryTemplate = (args) => ({
const PrimaryTemplate = (args, { argTypes }) => ({
components: { Card, CardHeader, CardFooter, CardImage },
props: Object.keys(argTypes),
template: `
<card
:primary-color="primaryColor"
Expand Down

0 comments on commit 876636a

Please sign in to comment.