File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
src/components/AssetDownload Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments