danilowoz/create-content-loader
关于
✏️ 轻松创建你自己的 react-content-loader 的工具。
创作与媒体实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Introduction
react-content-loader it is a SVG component to create placeholder loading, like Facebook cards loading or also known as skeleton UI. So using this online tool you will be able to create your own loader easily. You just need to draw using the canvas and get the snippet ready for:
- ReactJS;
- React Native;
- VueJS;
- Angular;
- SVG/HTML;
- Maybe Gif someday;
Still not clear? Read the documentation of react-content-loader
Your contribution is welcome
Add your loading code in the gallery following the steps bellow and help the community grows.
How to insert a loader?
- Build your custom amazing loading component;
- Create a file with a custom name, here;
- Use the following boilerplate (don't forget to fill the metadata);
- Insert the file in the gallery, here;
- Open a pull request, don't you know how to do it? Read this;
Boilerplate
import React from 'react'
import ContentLoader from 'react-content-loader'
const __NAME_OF_LOADER__ = props => {
return (
<ContentLoader
height={40}
width={1060}
backgroundColor="#d9d9d9"
foregroundColor="#ecebeb"
{...props}
>
// your loader
</ContentLoader>
)
}
__NAME_OF_LOADER__.metadata = {
name: '__REPLACE_ME__', // My name
github: '__REPLACE_ME__', // Github username
description: '__REPLACE_ME__', // Little tagline
filename: '__REPLACE_ME__', // filename of your loader
}
export default __NAME_OF_LOADER__
Development
Available Scripts
This project was bootstrapped with Create React App, so in the project directory, you can run:
npm install && npm run dev
Runs the app in the development mode.
Open http://localhost:5173 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
探索相关项目
加载中…