![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@yisheng90/react-loading
Advanced tools
Loading Skleton component building block to easily create placholder loadings.
🎨 Customizable - You can change the color, size and shape of the skeleton
🎮 Plug and Play - You can just import the component and start using it
🏠 Building block - You can use it as a building block to build complex loading component
🧸 Easy to adapt - It is a react component.
Install via yarn
or npm
npm install @yisheng90/react-loading --save
or
yarn add @yisheng90/react-loading
There are two ways to use it.
1. Use it as a component
import Skeleton from '@yisheng90/react-loading';
<Skeleton/>
2. Use it as a building block
import Skeleton from '@yisheng90/react-loading';
const CardSkleton = () => (
<div style={{display: 'flex', padding: '20px'}}>
<Skeleton width={45} circle color="pink"/>
<div style={{display: 'flex', flexDirection: 'column', justifyContent: 'space-evenly', width: '100%', marginLeft: "20px"}}>
<Skeleton color="pink"/>
<Skeleton width="50%" color="pink"/>
</div>
</div>
)
rows?: number
Defaults to 1. It is used to determine the number of rows to be display.
notes: This option will be ignored if circle
is set as true
width?: number | string
Defaults to 100%. It is used to set the width of the skeleton. You can set it using %
, rem
or px
.
height?: number | string
Defaults to 100%. It is used to set the height of the skeleton. You can set it using %
, rem
or px
.
circle?: boolean
Defaults to false. It is used to set shape of the skleton.
color?: string
It is used to set the color of the skleton. You can set it using hex
, rgb
or rgba
.
translucent?: boolean
Defaults to false. It is used to set the opacity of the skleton.
<Skeleton width={250} rows={6} />
<Skeleton width={250}/>
<Skeleton width="250px"/>
<Skeleton width="5rem"/>
<Skeleton height={25} />
<Skeleton height="25px" />
<Skeleton height="3rem" />
<Skeleton circle width={35} />
<Skeleton circle width={55} />
<Skeleton circle width={75} />
<Skeleton circle width={95} />
<Skeleton circle width={115} />
<Skeleton color="pink" circle width={35}/>
<Skeleton color="#F8B195" circle width={35}/>
<Skeleton color="#2A363B" circle width={35}/>
<Skeleton color="rgb(25,67,89)" circle width={35}/>
<Skeleton color="rgba(25,67,89, 0.3)" circle width={35}/>
<Skeleton color="black" width={250} height={30} translucent/>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
A React Skeleton Component
The npm package @yisheng90/react-loading receives a total of 61 weekly downloads. As such, @yisheng90/react-loading popularity was classified as not popular.
We found that @yisheng90/react-loading 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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.