Closed stephen-gift closed 4 months ago
I am here
hi, I have a question about the custom button in the requirement, Should the component only accept the functional component as a prop or is there something in here that it's supposed to do?
please can you kindly clarify @stephen-gift @abiona01
hi, I have a question about the custom button in the requirement, Should the component only accept the functional component as a prop or is there something in here that it's supposed to do?
please can you kindly clarify @stephen-gift @abiona01
The custom button mentioned Is the button from the main design.
Understood. Thank you very much for the clarificaion
Description
Create a reusable Media file upload component with drag-and-drop functionality using TypeScript (TSX) and Shadcn in a Next.js application. The component should support file selection through drag-and-drop and manual file input, displaying previews of the uploaded files with an option to delete uploaded images. It should also include a label prop and a customizable button component.
Acceptance Criteria
Requirements
onUpload
: (files: File[]) => voidonDelete
: (file: File) => voidlabel
: stringbuttonComponent
: React.FCTests
onDelete
callback.Tasks
MediaUpload
component:MediaUpload
component.LINKS
Figma Link
IMAGES