-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storybook: New story for PastDetourPanel (#2731)
- Loading branch information
1 parent
03652e9
commit b060e88
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
assets/stories/skate-components/detours/pastDetourPanel.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,28 @@ | ||
import type { Meta, StoryObj } from "@storybook/react" | ||
|
||
import React from "react" | ||
import { PastDetourPanel } from "../../../src/components/detours/pastDetourPanel" | ||
|
||
const meta = { | ||
component: PastDetourPanel, | ||
parameters: { | ||
layout: "fullscreen", | ||
stretch: true, | ||
}, | ||
args: {}, | ||
// The bootstrap CSS reset is supposed to set box-sizing: border-box by | ||
// default, we should be able to remove this after that is added | ||
decorators: [ | ||
(StoryFn) => ( | ||
<div className="border-box inherit-box h-100"> | ||
<StoryFn /> | ||
</div> | ||
), | ||
], | ||
} satisfies Meta<typeof PastDetourPanel> | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const Story: Story = {} |