This reverts commit a3f3230aa9.
I accidentally merged to main so am reverting this change.
25 lines
551 B
TypeScript
25 lines
551 B
TypeScript
import { Meta, StoryObj } from "@storybook/react";
|
|
|
|
import FileUploader from "./FileUploader";
|
|
|
|
const meta: Meta<typeof FileUploader> = {
|
|
title: "Components/FileUploader",
|
|
component: FileUploader,
|
|
args: {
|
|
graphicName: "file-configuration-profile",
|
|
message: "The main message",
|
|
additionalInfo: "The additional message",
|
|
accept: ".pdf",
|
|
isLoading: false,
|
|
onFileUpload: () => {
|
|
alert("File uploaded!");
|
|
},
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof FileUploader>;
|
|
|
|
export const Basic: Story = {};
|