From 25a8ebc40ff4ee64efb72027ae71a01255a7d8ba Mon Sep 17 00:00:00 2001 From: Jaideep Date: Tue, 20 Jun 2023 22:14:25 +0530 Subject: [PATCH] feat: Added controls for card storybook --- packages/ui/components/card/card.stories.mdx | 44 ++++++++++++++------ 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/packages/ui/components/card/card.stories.mdx b/packages/ui/components/card/card.stories.mdx index c58d101120..69b83f88c9 100644 --- a/packages/ui/components/card/card.stories.mdx +++ b/packages/ui/components/card/card.stories.mdx @@ -22,19 +22,37 @@ export const tip = { - - - + + {({ thumbnailUrl, mediaLink, title, description, learnMoreText }) => ( + + console.log("Clicked") }} - /> - - + variant="SidebarCard" + thumbnailUrl={thumbnailUrl} + mediaLink={mediaLink} + title={title} + description={description} + learnMore={{ href: tip.href, text: learnMoreText }} + actionButton={{ onClick: () => console.log("Clicked") }} + /> + + + )}