Skip to content

Commit c5a6538

Browse files
author
Mahendra Bishnoi
committed
feat: add AssetDownload component stories for Storybook
1 parent f4686b7 commit c5a6538

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import type { Meta, StoryObj } from "@storybook/react"
2+
3+
import AssetDownload from "."
4+
5+
import ethDiamondBlack from "@/public/images/assets/eth-diamond-black.png"
6+
7+
const meta = {
8+
title: "Components/AssetDownload",
9+
component: AssetDownload,
10+
parameters: {
11+
layout: "centered",
12+
},
13+
tags: ["autodocs"],
14+
} satisfies Meta<typeof AssetDownload>
15+
16+
export default meta
17+
18+
type Story = StoryObj<typeof meta>
19+
20+
export const WithArtist: Story = {
21+
args: {
22+
title: "Ethereum hero",
23+
alt: "Ethereum hero",
24+
image: ethDiamondBlack,
25+
artistName: "Liam Cobb",
26+
artistUrl: "https://liamcobb.com/",
27+
svgUrl: "/images/assets/svgs/eth-diamond-black.svg",
28+
},
29+
}
30+
31+
export const BrandAsset: Story = {
32+
args: {
33+
title: "ETH Diamond Glyph",
34+
alt: "ETH Diamond Glyph",
35+
image: ethDiamondBlack,
36+
svgUrl: "/images/assets/svgs/eth-diamond-glyph.svg",
37+
},
38+
}

0 commit comments

Comments
 (0)