placeholder-image-block 5.17.1-beta.3516
Install from the command line:
Learn more about npm packages
$ npm install @wpmedia/placeholder-image-block@5.17.1-beta.3516
Install via package.json:
"@wpmedia/placeholder-image-block": "5.17.1-beta.3516"
About this version
Fusion News Theme placeholder image. The intended use is to take the feature pack fallback image, as an external url or relative path.
- Add AC relevant to the block
Prop | Required | Type | Description |
---|---|---|---|
required prop | yes | ||
optional prop | no | ||
contentConfig example | Please specify which content sources are compatible |
Outline any schema information requirements necessary to know for ths block
- n/a
Phrase key | Default (English) |
---|---|
key |
english translation |
Blocks can emit events. The following is a list of events that are emitted by this block.
Event Name | Description |
---|---|
eventName | Describe the event |
Include block specific instructions for event listening.
OR
This block does not emit any events.
Please advise the useFusionContext
docs.
This was adapted from the footer block's usage of the deployment()
for relative blocks. This block does not support base64.
Takes in the desired height and width and small, medium and large breakpoints. See image document in news theme development file for more info on resizing in the future.
CustomBlock.jsx
import PlaceholderImage from '@wpmedia/placeholder-image-block';
const Component = ({width = 100}) =>
<PlaceholderImage
smallWidth={width}
smallHeight={154}
mediumWidth={274}
mediumHeight={154}
largeWidth={400}
largeHeight={225}
/>
blocks.json
"default": {
"siteProperties": {
"fallbackImage": "https://arc-anglerfish-staging-staging.s3.amazonaws.com/public/NA6FMAXWP5DR3FDZQ7SGJ3C3FE.png",
Details
- placeholder-image-block
- WPMedia
- over 2 years ago
- CC-BY-NC-ND-4.0
- 1 dependencies
Assets
- placeholder-image-block-5.17.1-beta.3516-npm.tgz
Download activity
- Total downloads 14,690
- Last 30 days 57
- Last week 2
- Today 0