Skip to content

My First Open Source Contribution #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 33 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,39 @@ Add your loading code in the gallery following the steps bellow and help the com
#### Boilerplate

```jsx
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__
import React from "react";
import ContentLoader from "react-content-loader";

const MyLoader = (props) => (
<ContentLoader
rtl
speed={1}
width={400}
height={150}
viewBox="0 0 400 150"
backgroundColor="#c0c0c0"
foregroundColor="#0080ff"
{...props}
>
<circle cx="10" cy="20" r="8" />
<rect x="25" y="15" rx="5" ry="5" width="220" height="10" />
<circle cx="10" cy="50" r="8" />
<rect x="25" y="45" rx="5" ry="5" width="220" height="10" />
<circle cx="10" cy="80" r="8" />
<rect x="25" y="75" rx="5" ry="5" width="220" height="10" />
<circle cx="10" cy="110" r="8" />
<rect x="25" y="105" rx="5" ry="5" width="220" height="10" />
</ContentLoader>
);
Unique.metadata = {
name: "Kartik Dhiman", // My name
github: "KDhiman123", // Github username
description: " Unique Loader Style", // Loader description
filename: "Unique", // filename of your loader
};

export default Unique;

```

---
Expand Down