
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@s-ui/react-atom-skeleton
Advanced tools
Display the loading state of a component while avoiding layout shift
Skeleton is used to display the loading state of a component while avoiding layout shift.
$ npm install @s-ui/react-atom-skeleton
import AtomSkeleton from '@s-ui/react-atom-skeleton'
return (<AtomSkeleton />)
@import '~@s-ui/theme/lib/index';
@import '~@s-ui/react-atom-skeleton/lib/index';
Use variant
prop to shape the skeleton and make it look like the final user interface. Choose between round
, square
and circle
.
import AtomSkeleton, {ATOM_SKELETON_VARIANTS} from '@s-ui/react-atom-skeleton'
const VariantStory = () => (
<>
<AtomSkeleton variant={ATOM_SKELETON_VARIANTS.circle} />
<AtomSkeleton variant={ATOM_SKELETON_VARIANTS.round} />
<AtomSkeleton variant={ATOM_SKELETON_VARIANTS.square} />
</>
);
While the width
and height
props could be set, it was made to be used directly in your components.
import AtomSkeleton from '@s-ui/react-atom-skeleton'
const SizeStory = () => (
<>
<AtomSkeleton height="16px" />
<h2>
<AtomSkeleton />
</h2>
</>
);
Use animation
prop to choose between wave
and pulse
animation, if the prop is set to false
the component won't have any.
import AtomSkeleton, {ATOM_SKELETON_ANIMATIONS} from '@s-ui/react-atom-skeleton'
const AnimationStory = () => (
<>
<AtomSkeleton animation={ATOM_SKELETON_ANIMATIONS.wave} />
<AtomSkeleton animation={ATOM_SKELETON_ANIMATIONS.pulse} />
<AtomSkeleton animation={false} />
</>
);
Use count
prop to display several skeletons
const CountStory = () => (
<>
<AtomSkeleton count={4} />
</>
);
Find full description and more examples in the demo page.
FAQs
Display the loading state of a component while avoiding layout shift
The npm package @s-ui/react-atom-skeleton receives a total of 4,845 weekly downloads. As such, @s-ui/react-atom-skeleton popularity was classified as popular.
We found that @s-ui/react-atom-skeleton demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.