
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.
@skeleton-elements/react
Advanced tools
Skeleton elements (aka UI Skeletons, Skeleton Screens, Ghost Elements) are representations of UI that will be available (loaded) soon. They are designed to improve perceived performance.
Skeleton elements (aka UI Skeletons, Skeleton Screens, Ghost Elements) - UI for improved perceived performance
See the documentation with examples and API documentation.
With npm:
npm i @skeleton-elements/react --save
Skeleton Elements requires stylesheet to be included:
<link rel="stylesheet" href="path/to/skeleton-elements.css>
Wiht bunder (like webpack) you can import syles directly from JavaScript:
import '@skeleton-elements/react/skeleton-elements.css';
Or it can be included for each component separately:
@skeleton-elements/react/skeleton-avatar.css
- Avatar component@skeleton-elements/react/skeleton-block.css
- Block component@skeleton-elements/react/skeleton-image.css
- Image component@skeleton-elements/react/skeleton-text.css
- Text component@skeleton-elements/react/skeleton-effects.css
- EffectsSCSS
styles are also included:
@skeleton-elements/react/skeleton-elements.scss
- All styles@skeleton-elements/react/skeleton-avatar.scss
- Avatar component@skeleton-elements/react/skeleton-block.scss
- Block component@skeleton-elements/react/skeleton-image.scss
- Image component@skeleton-elements/react/skeleton-text.scss
- Text component@skeleton-elements/react/skeleton-effects.scss
- EffectsThe following components are available:
SkeletonAvatar
- responsive avatar placeholderSkeletonBlock
- block placeholderSkeletonImage
- responsive image placeholderSkeletonText
- skeleton text (uses custom Skeleton font)See the documentation with examples and API documentation.
import React, { useState } from 'react';
// import Skeleton components
import { SkeletonAvatar, SkeletonText } from '@skeleton-elements/react';
// import Skeleton styles
import '@skeleton-elements/react/skeleton-elements.css';
const App = () => {
const [ loading, setLoading ] = useState(true);
// ...
return (
<div id="app">
...
{loading && (
<div className="user">
<div className="user-avatar">
<SkeletonAvatar effect="fade" size={120} />
</div>
<div className="user-name">
<SkeletonText effect="fade">John Doe</SkeletonText>
</div>
</div>
)}
...
</div>
);
}
export default App;
Yes please! See the contributing guidelines for details.
This project is licensed under the terms of the MIT license.
FAQs
Skeleton elements (aka UI Skeletons, Skeleton Screens, Ghost Elements) are representations of UI that will be available (loaded) soon. They are designed to improve perceived performance.
The npm package @skeleton-elements/react receives a total of 70 weekly downloads. As such, @skeleton-elements/react popularity was classified as not popular.
We found that @skeleton-elements/react 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.