feat: Sidebar + SidebarToggle, адаптивность компонентов (0.2.0)

This commit is contained in:
Тимур Городецкий
2026-08-14 10:35:42 +05:00
parent e65805379e
commit c72f93e359
38 changed files with 985 additions and 14 deletions
@@ -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 } };