Skip to content

Commit

Permalink
storybook: New story for PastDetourPanel (#2731)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarson authored Aug 8, 2024
1 parent 03652e9 commit b060e88
Showing 1 changed file with 28 additions and 0 deletions.
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 = {}

0 comments on commit b060e88

Please sign in to comment.