0.1.27 • Published 3 years ago
@smileeye.edu.vn/image v0.1.27
SmileEye.Edu.Vn React Image
ReactJS/NextJS Library Component for upload/view Image. Easy to use. Upload to S3 server support.
Live demo
Setup
Install SmileEye.Edu.Vn React Image with npm
npm install @smileeye.edu.vn/image
Get API key at https://link-to-project
Add API key at .env
file.
// ReactJS .env or Antd Pro .env
REACT_APP_CODEBY_STORAGE_URL=https://package-storage.codeby.com
REACT_APP_CODEBY_STORAGE_TOKEN=xxx
REACT_APP_CODEBY_STORAGE_API=xxx
// NextJS .env
NEXT_PUBLIC_CODEBY_STORAGE_URL=https://package-storage.codeby.com
NEXT_PUBLIC_CODEBY_STORAGE_TOKEN=xxx
NEXT_PUBLIC_CODEBY_STORAGE_API=xxx
Usage/Examples
import {ImageSingleUpload, ImageView} from "@smileeye.edu.vn/image";
import {useEffect, useState} from "react";
import "@smileeye.edu.vn/image/src/smileeye.edu.vn-image.min.css";
const App = () => {
const [value, setValue] = useState()
useEffect(() => {
console.log("useEffect value", value)
}, [value])
return (
<>
<ImageSingleUpload
value={value}
onChange={setValue}
/>
<hr/>
<ImageView image={value}/>
</>
)
}
export default App
Support
For support, email tiennv.ppe@gmail.com
or join our Slack channel.
R&D by https://smileeye.edu.vn
License
0.1.10
3 years ago
0.1.11
3 years ago
0.1.12
3 years ago
0.1.13
3 years ago
0.1.14
3 years ago
0.1.15
3 years ago
0.1.27
3 years ago
0.1.20
3 years ago
0.1.21
3 years ago
0.1.22
3 years ago
0.1.23
3 years ago
0.1.24
3 years ago
0.1.25
3 years ago
0.1.26
3 years ago
0.1.16
3 years ago
0.1.8
3 years ago
0.1.17
3 years ago
0.1.7
3 years ago
0.1.18
3 years ago
0.1.19
3 years ago
0.1.9
3 years ago
0.1.6
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago