-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add storybook story for paragraph
- Loading branch information
1 parent
50baa47
commit 6031a57
Showing
5 changed files
with
50 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
components/paragraphs/ParagraphGoVideo/ParagraphGoVideo.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { Meta, StoryObj } from "@storybook/react" | ||
|
||
import { darkModeDecorator } from "@/.storybook/decorators" | ||
import ParagraphGoVideo from "@/components/paragraphs/paragraphGoVideo/ParagraphGoVideo" | ||
|
||
const meta = { | ||
title: "components/ParagraphGoVideo", | ||
component: ParagraphGoVideo, | ||
parameters: { | ||
layout: "centered", | ||
}, | ||
args: { | ||
goVideoTitle: "Naja Marie Aidt - Oevelser i moerke", | ||
src: "https://media.videotool.dk/?vn=557_2024111913325696587632242634", | ||
}, | ||
} satisfies Meta<typeof ParagraphGoVideo> | ||
|
||
export default meta | ||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = { | ||
args: { | ||
goVideoTitle: "Naja Marie Aidt - Oeveser i moerke", | ||
}, | ||
|
||
render: args => <ParagraphGoVideo {...args}>ParagraphGoVideo</ParagraphGoVideo>, | ||
} | ||
|
||
export const DarkMode: Story = { | ||
decorators: [darkModeDecorator], | ||
render: args => <ParagraphGoVideo {...args}>ParagraphGoVideo</ParagraphGoVideo>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters