
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
@s-ui/react-atom-skeleton
Advanced tools
Display the loading state of a component while avoding 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 avoding layout shift
The npm package @s-ui/react-atom-skeleton receives a total of 1,117 weekly downloads. As such, @s-ui/react-atom-skeleton popularity was classified as popular.
We found that @s-ui/react-atom-skeleton 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.