react-instagram-embed
React embedding Instagram posts component
yarn add react-instagram-embed
npm i react-instagram-embed
Live demo
Usage
import InstagramEmbed from 'react-instagram-embed'
<InstagramEmbed
url='https://instagr.am/p/Zw9o4/'
maxWidth={320}
hideCaption={false}
containerTagName='div'
protocol=''
onLoading={() => {}}
onSuccess={() => {}}
onAfterRender={() => {}}
onFailure={() => {}}
/>
props
url
{String} Instagram URL. RequiredmaxWidth
{Number} Max width. Minimum size is 320
. Default undefined
hideCaption
{Boolean} Default false
containerTagName
{String} Default div
protocol
{String} Instagram API script protocol. Default ''
same as current protocol
- This property needed if you use device's file system, for example, Electron, Cordova apps
onLoading
{Function}onSuccess
{Function}onAfterRender
{Function}onFailure
{Function}
License
MIT
© sugarshin