{"repo":"dvtng/react-loading-skeleton","free":true,"listed":false,"github":"https://github.com/dvtng/react-loading-skeleton","clone":"git clone https://github.com/dvtng/react-loading-skeleton.git","description":"Create skeleton screens that automatically adapt to your app!","language":"TypeScript","stars":4206,"topics":["javascript","react","placeholder","loading-animations"],"license":"MIT","category":"ui-components","readme_excerpt":"React Loading Skeleton Make beautiful, animated loading skeletons that automatically adapt to your app. Open on CodeSandbox Learn about the changes in version 3, or view the v2 documentation. Basic Usage Install via one of: Principles Adapts to the styles you have defined The Skeleton component should be used directly in your components in place of content that is loading. While other libraries require you to meticulously craft a skeleton screen that matches the font size, line height, and margins of your content, the Skeleton component is automatically sized to the correct dimensions. For example: ...will produce correctly-sized skeletons for the heading and body without any further configuration. This ensures the loading state remains up-to-date with any changes to your layout or typography. Don't make dedicated skeleton screens Instead, make components with built-in skeleton states. This approach is beneficial because: 1. It keeps styles in sync. 2. Components should represent all possible states — loading included. 3. It allows for more flexible loading patterns. In the blog post example above, it's possible to have the title load before the body, while having both pieces of content show loading skeletons at the right time. Theming Customize individual skeletons with props, or render a SkeletonTheme to style all skeletons below it in the React hierarchy: Props Reference Skeleton only Prop Description Default count?: number The number of lines of skeletons to render. If co","default_branch":null,"files":null,"tree":[],"storefront":"/r/dvtng","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dvtng/react-loading-skeleton/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}