Skip to content
Gravity Logo / Docs Gravity home
Browse documentation
Documentation/Gravity Web

Image

The Image component is an image wrapper that requires the image to be imported before passing it to the src prop.

import Logo from './images/logo.svg';

<Image
  src={ Logo }
  title='Gravity Logo'
  alt='Awsome logo'
/>

Props

PropDescriptionRequiredvalue
altalt descriptionrequiredstring
classNamecustom styleoptionalSCSS or Tailwind
srcimported sourcerequiredimage
titledescriptionrequiredstring

Notes

  • The src prop should be an imported image source.
  • The alt and title props provide alternative text and a description for the image, respectively.