Component prop src
October 15, 2022 · View on GitHub
Prop src usually use in component Image、GIF loading resource, support network url、local path、buildtin symbol
Usage
import { Image } from 'lvlgjs-ui'
const path = require('path')
function Component () {
return (
<React.Fragment>
<Image src={path.resolve(__dirname, './assets/images/1.png')} />
<Image src={'https://somewebsite/images/1.png'} />
<Image src="audio" />
</React.Fragment>
)
}