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
+17
View File
@@ -0,0 +1,17 @@
import type { Meta, StoryObj } from '@storybook/react-vite';
import { Alert } from './Alert';
const meta: Meta<typeof Alert> = {
title: 'Сообщения/Alert',
component: Alert,
tags: ['autodocs'],
argTypes: { variant: { control: 'radio', options: ['warn', 'ok', 'err'] } },
args: { variant: 'ok', children: 'Заявка успешно отправлена.' },
};
export default meta;
type Story = StoryObj<typeof Alert>;
export const Success: Story = { args: { variant: 'ok', children: 'Заявка успешно отправлена.' } };
export const Warning: Story = { args: { variant: 'warn', children: 'Проверьте заполнение обязательных полей.' } };
export const Error: Story = { args: { variant: 'err', children: 'Не удалось загрузить заявку №42.' } };