2026-02-02 19:29:46 +00:00
|
|
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
|
|
|
import { Sidebar } from './Sidebar';
|
|
|
|
|
|
|
|
|
|
const meta = {
|
2026-02-05 13:20:06 +00:00
|
|
|
title: 'App/Layouts/Sidebar',
|
2026-02-02 19:29:46 +00:00
|
|
|
component: Sidebar,
|
|
|
|
|
tags: ['autodocs'],
|
|
|
|
|
decorators: [
|
|
|
|
|
(Story) => (
|
2026-02-07 14:25:44 +00:00
|
|
|
<div className="flex h-screen bg-background">
|
2026-02-05 13:20:06 +00:00
|
|
|
<Story />
|
2026-02-12 01:09:29 +00:00
|
|
|
<div className="flex-1 p-8 text-foreground ml-20 lg:ml-72">
|
2026-02-05 13:20:06 +00:00
|
|
|
<h1>Main Content Area</h1>
|
|
|
|
|
<p>Resize the viewport to see responsive behavior.</p>
|
2026-02-02 19:29:46 +00:00
|
|
|
</div>
|
2026-02-05 13:20:06 +00:00
|
|
|
</div>
|
2026-02-02 19:29:46 +00:00
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
parameters: {
|
|
|
|
|
layout: 'fullscreen',
|
|
|
|
|
},
|
|
|
|
|
} satisfies Meta<typeof Sidebar>;
|
|
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
|
|
|
|
|
|
export const Default: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
currentView: 'dashboard',
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const StudioActive: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
currentView: 'studio',
|
|
|
|
|
},
|
|
|
|
|
};
|