Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #31 from w3bdesign/develop
Browse files Browse the repository at this point in the history
Begynn på Storybook story for forside
  • Loading branch information
w3bdesign authored Dec 30, 2021
2 parents 04f0ecc + ea9bc60 commit 6e5b3a3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// https://dev.to/jonasmerlin/how-to-use-the-next-js-image-component-in-storybook-1415
// https://www.youtube.com/watch?v=i5tvZ9f7gJw

import "../styles/globals.css";

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
Expand All @@ -6,4 +11,4 @@ export const parameters = {
date: /Date$/,
},
},
}
};
13 changes: 13 additions & 0 deletions stories/pages/Index.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { ComponentStory, ComponentMeta } from "@storybook/react";

import Index from "../../pages/index"

export default {
title: "Pages/Index",
component: Index
} as ComponentMeta<typeof Index>;

export const IndexPage: ComponentStory<typeof Index> = () => <Index />



1 comment on commit 6e5b3a3

@vercel
Copy link

@vercel vercel bot commented on 6e5b3a3 Dec 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.