File size: 763 Bytes
6111b2b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { Meta, StoryObj } from "@storybook/react";
import DocsSidebar from "./DocsSidebar";

const meta: Meta<typeof DocsSidebar> = {
  title: "Docs/DocsSidebar",
  component: DocsSidebar,
};

export default meta;
type Story = StoryObj<typeof DocsSidebar>;

export const Default: Story = {
  args: {
    sections: [
      {
        title: "Getting Started",
        children: [
          { title: "Introduction", href: "/docs/intro" },
          { title: "Quick Start", href: "/docs/quickstart" },
        ],
      },
      {
        title: "Core Concepts",
        children: [
          { title: "Routing", href: "/docs/routing" },
          { title: "Providers", href: "/docs/providers" },
        ],
      },
    ],
  },
};