import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import {
CopilotModalHeader,
CopilotSidebarView,
type CopilotSidebarViewProps,
} from "@copilotkit/react-core/v2";
import { CopilotStoryLayout } from "./CopilotStoryLayout";
const meta = {
title: "UI/CopilotSidebarView",
component: CopilotSidebarView,
parameters: {
layout: "fullscreen",
},
render: (args) => (
),
} satisfies Meta;
export default meta;
type Story = StoryObj;
export const Default: Story = {
args: {
autoScroll: true,
},
};
export const RightPosition: Story = {
args: {
autoScroll: true,
position: "right",
width: 480,
},
};
export const LeftPosition: Story = {
args: {
autoScroll: true,
position: "left",
width: 480,
},
};
export const CustomHeader: Story = {
args: {
header: {
title: "Workspace Copilot",
titleContent: (props) => (
{props.children}
Always-on teammate
),
closeButton: (props) => (
),
},
},
};