Gravity
Search…
Gravity
Welcome to Gravity
Getting Started
Stack
Updates
Changelog
Gravity Server
Introduction
Installation
Application Structure
REST API
Authentication
Config
Environment Variables
Database Queries
Handling Errors
Logging
Push Notifications
Email Notifications
User Feedback
Permissions (Roles)
File Uploads
Payments
Free Accounts
CLI Toolbelt
Testing
Gravity Web
Introduction
Tailwind & SCSS
Routing
Events
Authentication
Hooks
Views
Handling Errors
Deployment
Components
Animate
Article
Badge
Button
Card
Chart
Feature List
Feedback
Form
Grid
Header
Hero
Icon
Image
Layout
Link
List
Loader
Logo
Message
Modal
Nav
Notification
Onboarding
Pricing
Progress
Search
Social
Stat
Table
Tabs
Testimonial
Gravity Native
Introduction
Prerequisites
Installation
App Context
Authentication
Magic Links
Handling Errors
Navigation
Config
Events
Views
Components
Push Notifications
Payments
Building Your App
Mission Control
Introduction
Installation
User Management
Feedback
Events
Logs
Powered By GitBook
Image
Display an image from a vector or pixel image file. You must import the image into your view before passing it to an <Image> component.
1
import Logo from './images/logo.svg';
2
​
3
<Image
4
source={ Logo }
5
title='Gravity Logo'
6
alt='Awsome logo'
7
className='logo'
8
/>
Copied!

Props

prop
description
value
src
imported image component
component
alt
alt description (optional)
string
title
image title (optional)
string
className
custom CSS class (optional)
CSS object
Previous
Icon
Next
Layout
Last modified 1yr ago
Copy link
Contents
Props