Skip to content

Commit fbfdbff

Browse files
feat(Simulator/Explanation): create story
1 parent cf8711b commit fbfdbff

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import pickBy from "lodash/pickBy"
2+
import type { Meta, StoryObj } from "@storybook/react"
3+
import { fn } from "@storybook/test"
4+
5+
import { viewportModes } from "../../../../.storybook/modes"
6+
import { Explanation as ExplanationComponent } from "../Explanation"
7+
8+
const meta = {
9+
title: "Molecules / Display Content / Simulator / Explanation",
10+
component: ExplanationComponent,
11+
parameters: {
12+
chromatic: {
13+
modes: pickBy(viewportModes, (arg) =>
14+
["2xl", "base"].includes(arg.viewport)
15+
),
16+
},
17+
},
18+
} satisfies Meta<typeof ExplanationComponent>
19+
20+
export default meta
21+
22+
export const Explanation: StoryObj<typeof meta> = {
23+
args: {
24+
explanation: {
25+
header: "Begin your journey by downloading a wallet",
26+
description: (
27+
<div className="[&_p]:mb-4">
28+
<p>To get started, you&apos;ll need to download a wallet app.</p>
29+
<p>
30+
Most people use mobile apps, but desktop apps and browser extensions
31+
are also available.
32+
</p>
33+
<p>
34+
Let&apos;s set up a mobile wallet. Click &quot;Install a
35+
wallet&quot; to get started.
36+
</p>
37+
</div>
38+
),
39+
},
40+
nav: {
41+
regressStepper: fn(),
42+
progressStepper: fn(),
43+
step: 0,
44+
totalSteps: 3,
45+
openPath: fn(),
46+
},
47+
nextPathSummary: { Icon: fn(), primaryText: "" },
48+
nextPathId: "send-receive",
49+
finalCtaLink: { href: "#", label: "Next Step", isPrimary: true },
50+
},
51+
render: (args) => <ExplanationComponent {...args} />,
52+
}

0 commit comments

Comments
 (0)