feat: Sidebar + SidebarToggle, адаптивность компонентов (0.2.0)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import * as React from 'react';
|
||||
import type { Meta, StoryObj } from '@storybook/react-vite';
|
||||
import { CollapseSection } from './CollapseSection';
|
||||
|
||||
const meta: Meta<typeof CollapseSection> = {
|
||||
title: 'Формы/CollapseSection',
|
||||
component: CollapseSection,
|
||||
tags: ['autodocs'],
|
||||
args: {
|
||||
title: 'Заявка на отпуск',
|
||||
icon: 'people',
|
||||
defaultOpen: true,
|
||||
children: <p style={{ margin: 0 }}>Поля секции формы.</p>,
|
||||
},
|
||||
};
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof CollapseSection>;
|
||||
|
||||
export const Open: Story = {};
|
||||
export const Closed: Story = { args: { defaultOpen: false } };
|
||||
Reference in New Issue
Block a user