@@ -5,7 +5,7 @@ A versatile and user-friendly file management system built with React, Next.js a
55<img src =" ./gifs/full.gif " />
66
77Checkout the live demo on, codesandbox <br />
8- [ ![ codesandbox.io] ( https://codesandbox.io/favicon.ico )] ( https://codesandbox.io/p/sandbox/cranky-breeze-r4hht7 ?file=%2Fsrc%2Fmain.js )
8+ [ ![ codesandbox.io] ( https://codesandbox.io/favicon.ico )] ( https://codesandbox.io/p/devbox/eager-mountain-n4zgs6 ?file=%2Fsrc%2FApp.tsx%3A29%2C40 )
99
1010---
1111
@@ -20,7 +20,7 @@ Checkout the live demo on, codesandbox <br />
2020 - [ Square View] ( #square-view )
2121 - [ Horizontal Long Square View] ( #horizontal-long-square-view )
2222 - [ Circular View] ( #circular-view )
23- - [ Over-ride CSS] ( #over -ride-css )
23+ - [ Use/ Over-ride CSS] ( #useover -ride-css )
2424- [ Properties and Events] ( #properties-and-events )
2525- [ Usage] ( #usage )
2626- [ Contributing] ( #contributing )
@@ -95,7 +95,13 @@ We are providing some examples with design. so, you can easily use it in your pr
9595
9696<img src =" ./gifs/round-view.gif " />
9797
98- ### Over-ride CSS
98+ ### Use/Over-ride CSS
99+
100+ - Use ` style.css ` for UI using,
101+
102+ ``` js
103+ import " @canopassoftware/react-file-upload/style.css"
104+ ```
99105
100106For over-riding the design of default buttons, you can over-ride it's CSS by class name. <br >
101107For example., <br >
@@ -192,11 +198,17 @@ To manage and preview files with this library, follow these steps:
192198
193199```js
194200// using CommonJS
195- const { SingleFileUpload, MultipleFileUpload } = require("@canopassoftware/react-file-upload");
201+ const {
202+ SingleFileUpload,
203+ MultipleFileUpload,
204+ } = require("@canopassoftware/react-file-upload");
196205
197- OR
206+ OR;
198207// using esModules
199- import { SingleFileUpload, MultipleFileUpload } from "@canopassoftware/react-file-upload";
208+ import {
209+ SingleFileUpload,
210+ MultipleFileUpload,
211+ } from "@canopassoftware/react-file-upload";
200212```
201213
202214### Creating custom UI with file preview
@@ -250,8 +262,8 @@ export default function App() {
250262 < SingleFileUpload
251263 uploadedFile= {setPreviewFileData}
252264 callback= {handleFileUploading}
253- uploadBtn = {" Save" }
254- progressBtn = {" Saving..." }
265+ uploadBtnText = {" Save" }
266+ progressBtnText = {" Saving..." }
255267 >
256268 <!-- write a code to manage file design or use code from examples -->
257269 < / SingleFileUpload>
@@ -265,10 +277,9 @@ export default function App() {
265277``` js
266278" use client" ;
267279
268- import Image from " next/image" ;
280+ import Image , { StaticImageData } from " next/image" ;
269281import React from " react" ;
270282import MultipleFileUpload from " @canopassoftware/react-file-upload" ;
271- import { StaticImageData } from " next/image" ;
272283
273284export default function App () {
274285 const uploadedFiles = [] as Array < {
@@ -301,8 +312,9 @@ return (
301312 accept= " "
302313 uploadedFiles= {uploadedFiles}
303314 callback= {handleFilesUploading}
304- uploadBtn= {" Save" }
305- progressBtn= {" Saving..." }
315+ removeBtnText= {" remove" }
316+ uploadBtnText= {" Save" }
317+ progressBtnText= {" Saving..." }
306318 >
307319 {(file : any ) => (
308320 <!-- write a code to manage file design or use code from examples -->
0 commit comments