Carregando…
Carregando…
Carregando…Dropzone with per-file preview (image thumbnail or generic icon) and a removable animated list.
Arraste imagens ou PDFs — pré-visualização por item (thumbnail real)
Drag and drop files here, or click to select
$ npx kikitocn add droppable-file@/lib/utils@/lib/motion@/hooks/cn/use-drop-zonemotionlucide-reactimport { DroppableFile } from "@/components/ui/cn/droppable-file/DroppableFile";
export function DroppableFileExample() {
return (
<DroppableFile />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
accept | string | 'image/*,application/pdf' | Tipos de arquivo aceitos |
multiple | boolean | true | Permite seleção/drop de múltiplos arquivos |
onFilesChange | (files: File[]) => void | — | Callback com a lista atual de arquivos |
className | string | — | Classes CSS extras |
style | React.CSSProperties | — | Estilos inline extras |