import type { Meta, StoryObj } from '@storybook/react'; import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from './resizable'; import React from 'react'; const meta: Meta = { title: 'UI/Resizable', component: ResizablePanelGroup, render: args => , argTypes: { direction: { control: 'select', options: ['horizontal', 'vertical'], }, }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { direction: 'horizontal', }, render: args => (
Sidebar
Main Content
), }; export const Vertical: Story = { args: { direction: 'vertical', }, render: args => (
Top
Bottom
), }; export const Nested: Story = { render: () => (
Sidebar
Header
Content
), };