question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add PlaceholderImage component

See original GitHub issue

Description

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 and width props to specify pixel dimensions of image
  • Should load a new image when any of the height, width, or blur props change (not on every component update)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ael-mascommented, Apr 12, 2019

I’d like to work on this issue

0reactions
tfquirkcommented, Sep 20, 2019

PR merged. Closing issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found