npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ember-fake-content

v0.3.0

Published

Composable components for rendering animated content placeholders like facebook

Downloads

7

Readme

ember-fake-content

NPM version Build Status

Ember addon for rendering fake content while data is fetching to provide better UX and lower bounce rate.

:cd: Installation

  • ember install ember-fake-content

:rocket: Usage

{{#fake-content as |fake|}}
  {{fake.heading img=true}}
  {{fake.text lines="3"}}
{{/fake-content}}

rendered example

{{#fake-content rounded=true as |fake|}}
  {{fake.img}}
  {{fake.heading}}
{{/fake-content}}

rendered example

Available components and properties

  • root fake-content

    • Boolean animated (default: true)
    • Boolean rounded (default: false) - border radius
    • Boolean centered (default: false)

    properties from root component are automatically passed down to each one of yielded components, so they can be overriden whenever necessary per comoponent case

  • yield fake.heading

    • Boolean img (default: false)
  • yield fake.text

    • Number lines (default: 4)
  • yield fake.img

  • yield fake.nav

TO DO:

  • fake.list
  • fake.chart
  • fake.table

Customization

Composable components make it easy to form a required module, but sometimes it's not enough. If you'd like to also amend styling, there are few variables that can help you out:

  • $ember-fake-content-primary-color - heading background
  • $ember-fake-content-secondary-color - light background
  • $ember-fake-content-border-radius - border radius size when rounded property is true
  • $ember-fake-content-line-height - single line height
  • $ember-fake-content-spacing - distance between lines

🔓 License

See the LICENSE file for license rights and limitations (MIT).