Skip to content

Grove

Upload Zone

A drop area on a real file input: drag files in or browse, then review and remove them.

Live, interactive React component · light themeResponsive

About the Grove Upload Zone

A drop area for files built on a real <input type="file">: the whole dashed panel is the input's label, so a click or Enter opens the picker and the files submit with the form, also without JavaScript. Dragging files over it highlights it; dropped files are checked against accept, written to the input and listed under the zone with their size and a remove button each. With multiple every drop or pick adds to the list (the same file is not added twice, maxFiles caps it); without it a new file replaces the last. The count is announced to screen readers and the list clears when the form resets. The server must still check type and size. Client component.

It is part of Grove: white cards on sage, pastel chips, pine green. The style’s 135 pieces share one set of tokens, type and motion, in a light and a dark theme, so whatever you take from it fits together.

To put it in your project, copy the prompt into Claude Code, OpenAI Codex or Cursor, or add it by hand. The documentation walks through both.