Skip to content

Instantly share code, notes, and snippets.

@mshanemc
Created June 5, 2017 16:25
Show Gist options
  • Save mshanemc/d8574856dafd5598261e86af5646024d to your computer and use it in GitHub Desktop.
Save mshanemc/d8574856dafd5598261e86af5646024d to your computer and use it in GitHub Desktop.
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
<aura:attribute name="imgUrl" type="string" required="true" default="https://farm8.staticflickr.com/7683/17369785125_efca0c32ec_o.jpg"/>
<img src="{!v.imgUrl}" />
</aura:component>
img.THIS {
width:100%;
}
<design:component >
<design:attribute name="imgUrl" label="Image Url" description="url for where the image lives"/>
</design:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment