Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
simple-react-skeleton
Advanced tools
A simple, fast and easy react skeleton component for your projects.
A simple, fast and easy react skeleton component for your projects.
You can install this package via npm:
npm install simple-react-skeleton
<Skeleton propsOrder={["img", "text", "img", "half-text", "profile"]} />
or
<Skeleton dark>
<SkeletonText lines={2} />
<SkeletonImage profile />
<SkeletonText half />
</Skeleton>
The Skeleton component accepts the following props:
type AccecptedProps = "img" | "profile" | "text" | "half-text"
propsOrder?: AcceptedProps[]
: The order of skeleton props to be displayed.
children?: React.ReactNode
: Children elements to be displayed within the skeleton.
outline?: boolean
: Whether to display an outline for the skeleton.
style?: React.CSSProperties
: Custom CSS styles for the skeleton.
dark?: boolean
: If true, the skeleton is rendered in dark mode or light mode by default.
The SkeletonText component accepts the following props:
lines?: number
: The number of lines to be displayed as skeleton text.
half?: boolean
: Whether the text width should be half.
<SkeletonText lines={2} /> or <SkeletonText lines={2} half />
The SkeletonImage component accepts the following props:
profile?: boolean
: Whether the image should be displayed as a profile image (circle).
<SkeletonImage /> or <SkeletonImage profile />
FAQs
A simple, fast and easy react skeleton component for your projects.
We found that simple-react-skeleton demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.