Image

The Image component is a layout primitive that can be used to render images.

It is just a img with some styles.

How to use

1import { Image } from '@devup-ui/react'
2
3function App() {
4  return <Image src="https://via.placeholder.com/150" />
5}
1import { Image } from '@devup-ui/react'
2
3function App() {
4  return <Image src="https://via.placeholder.com/150" />
5}

The Image component defined above will render like this:

1function App() {
2  return <img src="https://via.placeholder.com/150" />
3}
1function App() {
2  return <img src="https://via.placeholder.com/150" />
3}