All Projects → henrykuzmick → react-skeleton-loader

henrykuzmick / react-skeleton-loader

Licence: other
A react helper for skeleton loaders

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-skeleton-loader

Ocskeleton
[OCSkeleton] - Make your loading view a little difference.
Stars: ✭ 184 (+201.64%)
Mutual labels:  skeleton, loader
Ngx Skeleton Loader
Make beautiful, animated loading skeletons that automatically adapt to your Angular apps
Stars: ✭ 278 (+355.74%)
Mutual labels:  skeleton, loader
Boxloaderview
Stars: ✭ 76 (+24.59%)
Mutual labels:  loader, animated
Skeleton Elements
Skeleton elements - UI for improved perceived performance
Stars: ✭ 27 (-55.74%)
Mutual labels:  skeleton, loader
Vue Content Placeholders
Composable components for rendering fake (progressive) content like facebook in vue
Stars: ✭ 1,547 (+2436.07%)
Mutual labels:  skeleton, loader
React Native Skeleton Content Nonexpo
A customizable skeleton-like loading placeholder for react native projects not using expo.
Stars: ✭ 92 (+50.82%)
Mutual labels:  skeleton, loader
Skeleton
💀 An easy way to create sliding CAGradientLayer animations! Works great for creating skeleton screens for loading content.
Stars: ✭ 587 (+862.3%)
Mutual labels:  skeleton, loader
React Content Loader
⚪ SVG-Powered component to easily create skeleton loadings.
Stars: ✭ 11,830 (+19293.44%)
Mutual labels:  skeleton, loader
React Native Skeleton Content
A customizable skeleton-like loading placeholder for react native projects using expo.
Stars: ✭ 221 (+262.3%)
Mutual labels:  skeleton, loader
docker-dataset
Docker database images with pre-populated data for testing and/or practice.
Stars: ✭ 35 (-42.62%)
Mutual labels:  dummy
react-native-3d-swiper
A performant, javascript-only 3d swiper for react-native
Stars: ✭ 36 (-40.98%)
Mutual labels:  animated
create-siler-app
🧱 Set up a modern Siler app by running one command.
Stars: ✭ 15 (-75.41%)
Mutual labels:  skeleton
webapp-skeleton
🎁 Web application project skeleton based on Nette Framework (@nette), Doctrine (@nettrine) and Contributte (@contributte) libraries by @f3l1x.
Stars: ✭ 82 (+34.43%)
Mutual labels:  skeleton
react-native-card-animated-modal
An animated modal from a card item in a list for React Native.
Stars: ✭ 93 (+52.46%)
Mutual labels:  animated
react-native-modal-loader
Customizable animated modal progress hud for react apps.
Stars: ✭ 36 (-40.98%)
Mutual labels:  loader
etc-skel
/etc/skel with super cool confs for tmux, psql, inputrc, git, bash, dircolors, and more.
Stars: ✭ 22 (-63.93%)
Mutual labels:  skeleton
ex loader
Load a single beam file, apps (a set of beams), or an erlang release (a set of apps) to a node.
Stars: ✭ 12 (-80.33%)
Mutual labels:  loader
spinners-angular
Lightweight SVG/CSS spinners for Angular
Stars: ✭ 21 (-65.57%)
Mutual labels:  loader
apollo11
elementary app skeleton (hello houston)
Stars: ✭ 27 (-55.74%)
Mutual labels:  skeleton
fastify-loader
The route loader for the cool kids!
Stars: ✭ 17 (-72.13%)
Mutual labels:  loader

React Skeleton Loader

npm version gzip size

React Skeleton Loader is a React component designed to help you easily integrate custom animated skeletons for loading states. It best works with text elements as it adopts to the fonts size and line height of your content, but it can be easily fitted to use with other objects like images and avatars.

Demo

Click here 👌

Basic Usage

The components you create should have loading states embeded in them. You can do this however you want. You could rely on state changes, promise responses, or simply checking if the props passed aren't undefined.

import Skeleton from 'react-skeleton-loader';

const Page = (props) => {
  return(
    <div>
      <h1>props.title | <Skeleton /></h1>
      <p>props.body | <Skeleton count={5} /></p>
    </div>
  )
}

Props

Prop Type Default Description
width string "150px" The (max) width of the element
height string "100%" The (max) height of your element
widthRandomness number 0.25 Amount of width randomness
heightRandomness number 0 Amount of height randomness
borderRadius string 8px border radius of the element
color string #EFF1F6 the background color of the element
count number 1 How many time should this be repeated
animated boolean true If it should animate

When using widthRandomness or heightRandomness the maximum width and height will be determined by width and height props. It can then only decrease. For example if widthRandomness is set to 0.25, and width is set to 100px the width will vary between 100px and 75px.

Licence

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].