import { Index } from "solid-js" import { DocumentSurface } from "./document-surface" const defaults = { pages: 1, width: 640 } export default { title: "UI/DocumentSurface", id: "ui-document-surface", args: defaults, argTypes: { pages: { control: { type: "range", min: 1, max: 5, step: 1 } }, width: { control: { type: "range", min: 240, max: 800, step: 10 } }, }, render: (args: typeof defaults) => (
Page {i + 1} of {args.pages}