Skip to content

Commit ae88cd2

Browse files
committed
add story for Trilemma component
1 parent 3bd4d82 commit ae88cd2

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.storybook/i18next.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const ns = [
1818
"page-learn",
1919
"page-upgrades",
2020
"page-developers-index",
21+
"page-roadmap-vision",
2122
]
2223
const supportedLngs = Object.keys(baseLocales)
2324

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import { Box, ChakraProvider } from "@chakra-ui/react"
2+
import { Meta, StoryObj } from "@storybook/react"
3+
4+
import Trilemma from "."
5+
6+
const meta = {
7+
title: "Molecules / Trilemma",
8+
component: Trilemma,
9+
parameters: {
10+
layout: "fullscreen",
11+
},
12+
decorators: [
13+
(Story) => (
14+
<ChakraProvider>
15+
<Box
16+
w="100vw"
17+
h="100vh"
18+
display="flex"
19+
alignItems="center"
20+
justifyContent="center"
21+
bg="radial-gradient(46.28% 66.31% at 66.95% 58.35%, #e6e6f7 0%, #e7edfa 50%, #e9fbfa 100%)"
22+
>
23+
<Story />
24+
</Box>
25+
</ChakraProvider>
26+
),
27+
],
28+
} satisfies Meta<typeof Trilemma>
29+
30+
export default meta
31+
type Story = StoryObj<typeof meta>
32+
33+
export const Default: Story = {
34+
render: () => <Trilemma />,
35+
}

0 commit comments

Comments
 (0)