23 lines
695 B
TypeScript
23 lines
695 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import { FileUploadZone } from './FileUploadZone';
|
|
|
|
const meta: Meta<typeof FileUploadZone> = {
|
|
title: 'Components/Features/Upload/FileUploadZone',
|
|
component: FileUploadZone,
|
|
parameters: { layout: 'centered' },
|
|
tags: ['autodocs'],
|
|
decorators: [
|
|
(Story) => (
|
|
<div className="bg-background p-8 w-[500px]">
|
|
<Story />
|
|
</div>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Default: Story = { name: 'Par défaut' };
|
|
export const Dragging: Story = { name: 'Drag en cours' };
|
|
export const Processing: Story = { name: 'Traitement' };
|