Dropzone
A drop area with clear rules on type and size. Accessible from the keyboard.
- Component
- Light and dark
- Keyboard friendly
- Updated 5 months ago
Paste this into your agent.
Add drag files in, or click to choose to <the page you want it on>. Install it with: npx shadcn add @ollie/dropzone Pass accept, maxBytes, ariaLabel, idleTitle, draggingTitle, hint, removeLabel and errors in as props. Handle onFileChange yourself; don't fetch inside the component. Keep the ocean theme tokens.
More components
- Scenario BuilderWeigh what matters, set the rules, and compare the options.
- Multi comboboxSearch and pick one or many from a long list.
- Date range pickerPick a date range, or one tap for "last 30 days".
- Filter barSearch and filters that stay in the URL, so links keep them.
- Sort menuPick what to sort by and which way, in one menu.
- Inline editClick text to edit it right there. Saves when you click away.
- Number inputA number box that won't change when you scroll past it.
- Segmented controlPick one of a few options, all visible at once.
- File uploadUpload several files at once, with progress and retry for each.
- Rich text editorA writing box with bold, italics, headings, lists, links and images.