Add PlaceholderImage component
See original GitHub issueDescription
In order to create demos for image-related components in Storybook, we’d like to create a new component responsible for loading and rendering an image of a specified height and width. It would also be nice to support blurred images, for example, to demonstrate components that lazy-load images.
After reviewing a few possible placeholder image services, the following seem to satisfy our requirements:
Requirements
- Randomly selects a service from the above list each time it loads an image
- Accepts a boolean prop named
blur
- In this case, the component should retrieve its image from Lorem Picsum (the only service of the above that supports blur).
- Accepts numeric
height
andwidth
props to specify pixel dimensions of image - Should load a new image when any of the
height
,width
, orblur
props change (not on every component update)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Image Placeholder Component | Figma Community
This is a Figma Community file. Community is a space for Figma users to share things they create. Get started with a free...
Read more >Stable image component with placeholder in React - ITNEXT
Stable image component with placeholder in React. In most case, showing placeholders during loading images is a good idea, especially for ...
Read more >Placeholder.com: Placeholder.com – The Free Image ...
Placeholder.com – The Free Image Placeholder Service Favoured By Designers · 1 What Is Placeholder.com? · 2 How To Use Our Placeholders ·...
Read more >How Do You Make a Placeholder in Figma? - website builder
A placeholder is a design element in Figma that allows you to quickly ... To add an image to your placeholder, simply drag...
Read more >Design systems 101: placeholder components in Figma
The placeholder component reserves space for content that can appear in your layout. It can be easily hooked up to the component properties...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’d like to work on this issue
PR merged. Closing issue.