mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Many inputs added
This commit is contained in:
20
lib/component/input/file/DragAndDropFileInput.tsx
Normal file
20
lib/component/input/file/DragAndDropFileInput.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { useRef } from "react";
|
||||
|
||||
|
||||
export default function DragAndDropFileInput(){
|
||||
const inputRef = useRef<HTMLInputElement>(null);
|
||||
|
||||
|
||||
return (
|
||||
<div
|
||||
className="relative border-2 rounded-lg w-full h-full cursor-pointer"
|
||||
>
|
||||
<input
|
||||
ref={inputRef}
|
||||
type="file"
|
||||
className="sr-only"
|
||||
/>
|
||||
Drag And Drop File Input
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user