feat: Sidebar + SidebarToggle, адаптивность компонентов (0.2.0)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react-vite';
|
||||
import { useState } from 'react';
|
||||
import { MoneyInput } from './MoneyInput';
|
||||
|
||||
const meta: Meta<typeof MoneyInput> = {
|
||||
title: 'Поля/MoneyInput',
|
||||
component: MoneyInput,
|
||||
tags: ['autodocs'],
|
||||
};
|
||||
|
||||
export default meta;
|
||||
|
||||
export const Default: StoryObj<typeof MoneyInput> = {
|
||||
render: () => {
|
||||
const [v, setV] = useState('350000');
|
||||
return <MoneyInput value={v} onChange={setV} />;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user