@maven-io/react-instagram-embed
v1.4.0-rc.1
Published
React embedding Instagram posts component
Downloads
6
Readme
react-instagram-embed
React embedding Instagram posts component
yarn add react-instagram-embed
# or
npm i react-instagram-embed
Usage
import InstagramEmbed from 'react-instagram-embed'
<InstagramEmbed
url='https://instagr.am/p/Zw9o4/'
maxWidth={320}
hideCaption={false}
containerTagName='div'
protocol=''
injectScript
onLoading={() => {}}
onSuccess={() => {}}
onAfterRender={() => {}}
onFailure={() => {}}
/>
props
url
{String} Instagram URL. RequiredmaxWidth
{Number} Max width. Minimum size is320
. Defaultundefined
hideCaption
{Boolean} Defaultfalse
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
injectScript
{Boolean} Defaulttrue
onLoading
{Function}onSuccess
{Function}onAfterRender
{Function}onFailure
{Function}
License
© sugarshin