import { playgroundParameters } from "@charcuterie/storybook-config/story-parameters" import type { Meta, StoryObj } from "@storybook/react" import { useState } from "react" import { Button } from "../Button/Button.tsx" import { ContainerBoard, StoryCell, StoryGrid, } from "../board.storyHelpers.tsx" import { HtmlView } from "./HtmlView.tsx" import { DOCUMENT_IMAGE, HOSTILE_HTML, HTML_DOCUMENT, } from "./htmlDocument.storyHelpers.ts" const meta = { title: "Components/Data/HtmlView", component: HtmlView, parameters: { layout: "padded" }, args: { label: "Saved notes", value: HTML_DOCUMENT }, } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = { parameters: playgroundParameters, } export const AllVariants: Story = { render: () => ( Mounting fixture

Fixture illustration`} />
), } export const AllStates: Story = { render: () => ( ), } export const Responsive: Story = { render: () => ( {(width) => ( https://example.invalid/an-extremely-long-source-path-with-no-spaces-in-the-identifier-for-a-recipe-revision

`} /> )}
), } export const Interactive: Story = { render: () => { const [value, setValue] = useState(HTML_DOCUMENT) return (
) }, }