Skip to main content

Image

img

Usage​

This props inherits all the img properties from HTML

import React from 'react'
import { Image } from 'qdm-component-library'

function App() {
return (
<Image
src="https://images.firstpost.com/wp-content/uploads/2017/06/Sundar_Pichai_New.jpg"
inLineStyles={{ width: '160px !important' }}
alt="user"
/>
)
}
export default App

Reference​

Props​

className​

props for providing classname to Image component string

id​

props for providing id to Image component string

name​

props for providing name to Image component string

url​

props for providing url to the Image Component string

alt​

props for providing alteration when invalid url to the Image Component string

inLineStyles​

props give addition props to the Image Component type Object