Components

BlockQuote

<BlockQuote />

Constructor

# <BlockQuote />

BlockQuote is a story element. The look of the BlockQuote can be changed using the render prop blockquoteRender. In case blockquoteRender is passed in the config, it is rendered. Otherwise a default BlockQuote 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: {
     blockquoteRender: ({ story, config, element }) => <MyCustomBlockQuote story={story} config={config} storyElement={element} />
   }
 }
})
...

View Source atoms/story-elements/blockquote/blockquote.tsx, line 91