File Uploader
Upload a file
or drag and drop
.GB .GBK .FA .FASTA .FNA .TXT
"use client";
import { FileUpload } from "@ninjha01/nitro-ui";
export const Default = () => {
return (
<FileUpload
parseFile={async (f) => {
return { fileName: f.name, success: true, data: { foo: "bar" } };
}}
upload={async (res: {
fileName: string;
success: true;
data: unknown;
}) => {
alert("Uploaded " + res.fileName);
}}
/>
);
};
With Validation
TODO