0.1.27 • Published 2 years ago

@smileeye.edu.vn/image v0.1.27

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

SmileEye.Edu.Vn React Image

ReactJS/NextJS Library Component for upload/view Image. Easy to use. Upload to S3 server support.

Live demo

https://link-to-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

MIT

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.27

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.16

2 years ago

0.1.8

2 years ago

0.1.17

2 years ago

0.1.7

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.9

2 years ago

0.1.6

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago