Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-content-shimmer
Advanced tools
Content Shimmer to easily create placeholder loading, image loading, card loading, etc .., free to change the colors, speed, sizes, radius and shadow also have few deafult Loding Componets to use. (CardShimmer,ProfileShimmer,SocialShimmer,BulletListShimme
Note : New Version v2.2.5 Corrected spelling Mistake Please Refer the docs ... Happy Coding 😀
Content Shimmer to easily create placeholder loading, image loading, card loading, etc .., free to change the colors, speed, sizes, radius and shadow also have few default Loading Components to use.
npm i --save react-content-shimmer
import ContentShimmer from 'react-content-shimmer'
const YourStyleName = () => {
return (
<ContentShimmer />
)
}
Prop name and type | Values | Description |
---|---|---|
rows?: number Defaults to 1 | - | It's used to create multiple loader at once in a page |
background?: string Defaults to #eeeeee | - | It's is used to change the background of your ContentShimmer |
foreground?: string Defaults to #dddddd | - | It's is used to change the foreground color of your ContentShimmer |
elevation?: number Defaults to 0.08 | - | It's is used for background outset shadow to your ContentShimmer |
speed?: number Defaults to 1s | - | Controll Speed of animation support value in seconds |
rounded?: string Defaults to 0px | - | Curve of your Loader Component in px , percentage (%)... available for use in <ContentShimmer/> , <ProfileShimmer /> |
style?: object | - | Give extra styling you want accept all css properties |
size?: {height? : number, Width? : number} | - | It's used to change the height and width your ContentShimmer only props use while creating custom ContentShimmer <ContentShimmer /> |
radius?: string Defaults to sm | (xs - sm - md - lg - xl ) | It's is used as giving curve from corner only available in <ProfileShimmer /> . |
variant?: string Defaults to rounded | (default - rounded ) | Shape for the define Style like <SocialShimmer />, <CodeShimmer />,<BulletListShimmer /> |
animation?: string Defaults to wave | (wave - pulse ) | Change animation for any of your shimmer or loader |
**Plug and play components**
import { SocialShimmer } from 'react-content-shimmer'
const YourStyleName = () => {
return (
<SocialShimmer />
)
}
import { BulletListShimmer } from 'react-content-shimmer'
const YourStyleName = () => {
return (
<BulletListShimmer />
)
}
import { CodeShimmer } from 'react-content-shimmer'
const YourStyleName = () => {
return (
<CodeShimmer />
)
}
import { ProfileShimmer } from 'react-content-shimmer'
const YourStyleName = () => {
return (
<ProfileShimmer />
)
}
Custom ContentShimmer workes more well with the css or bootstrap classes Create with this Css Tricks will works Awesome 😎 Live Working Example at the Top
import ContentShimmer from 'react-content-shimmer'
const YourStyleName = () => {
return (
<div className="p-2 d-flex align-items-center">
<div>
<div className="p-2 d-flex align-items-center">
<ContentShimmer size={{ height: 80, width: 80 }} rounded="10%" />
<div className="p-3">
<ContentShimmer style={{ marginBottom: "1rem" }} size={{ height: 15, width: 200 }} />
<ContentShimmer size={{ height: 15, width: 100 }} />
</div>
</div>
<ContentShimmer style={{ marginTop: "1rem" }} rounded={"10px"} size={{ height: 15, width: 350 }} />
<ContentShimmer style={{ marginTop: "1rem" }} rounded={"10px"} size={{ height: 15, width: 350 }} />
</div>
</div>
)
}
MIT © Tirth886
FAQs
Content Shimmer to easily create placeholder loading, image loading, card loading, etc .., free to change the colors, speed, sizes, radius and shadow also have few deafult Loding Componets to use. (CardShimmer,ProfileShimmer,SocialShimmer,BulletListShimme
The npm package react-content-shimmer receives a total of 238 weekly downloads. As such, react-content-shimmer popularity was classified as not popular.
We found that react-content-shimmer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.