Components

InstagramElement

<InstagramElement />

Constructor

# <InstagramElement />

InstagramElement is a story element. The look of the InstagramElement can be changed using the render prop instagramElementRender. In case instagramElementRender is passed in the config, it is rendered. Otherwise a default InstagramElement is rendered.

Parameters:
Name Type Description
params Object

object containing parameters passed to the render prop

story Object

story object

config Object

config object

element Object

the story element. This is same as the story element found in the story API response

...
ampRoutes(app, {
 render: {
   storyElementRender: {
     instagramElementRender: ({ story, config, element }) => <MyCustomInstagramElement story={story} config={config} storyElement={element} />
   }
 }
})
...

View Source atoms/story-elements/instagram-element/instagram-element.tsx, line 25