In a form where a file is one answer among others, FileInputBox takes the drop in a box the height of a text field, with the button at its end.
pnpm dlx shadcn@latest add "https://kinoui.com/r/file-input-3.json"