Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

879 B
Raw Blame
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Card } from "@editor/ui";
import { DocsSection } from "@editor-core/components/docs/DocsSection";
import "@editor-core/components/docs/DeveloperDocs.css";

const meta: Meta<typeof DocsSection> = {
  title: "Portal/DeveloperDocs/DocsSection",
  component: DocsSection,
  parameters: { layout: "padded" },
  args: {
    id: "example",
    eyebrow: "API REFERENCE",
    title: "Section heading",
    lead: "A short lead paragraph introducing the section's content.",
    children: <Card padding="default">Section body</Card>,
  },
  decorators: [
    (S) => (
      <div style={{ maxWidth: "46rem" }}>
        <S />
      </div>
    ),
  ],
};
export default meta;
type Story = StoryObj<typeof DocsSection>;

export const Default: Story = {};

export const WithoutLead: Story = {
  args: { lead: undefined },
};