feat: Sidebar + SidebarToggle, адаптивность компонентов (0.2.0)
This commit is contained in:
@@ -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.' } };
|
||||
Reference in New Issue
Block a user