Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@skeleton-elements/vue
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/vue --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/vue/skeleton-elements.css';
Or it can be included for each component separately:
@skeleton-elements/vue/skeleton-avatar.css
- Avatar component@skeleton-elements/vue/skeleton-block.css
- Block component@skeleton-elements/vue/skeleton-image.css
- Image component@skeleton-elements/vue/skeleton-text.css
- Text component@skeleton-elements/vue/skeleton-effects.css
- EffectsSCSS
styles are also included:
@skeleton-elements/vue/skeleton-elements.scss
- All styles@skeleton-elements/vue/skeleton-avatar.scss
- Avatar component@skeleton-elements/vue/skeleton-block.scss
- Block component@skeleton-elements/vue/skeleton-image.scss
- Image component@skeleton-elements/vue/skeleton-text.scss
- Text component@skeleton-elements/vue/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 for more examples and API documentation.
<template>
<div id="app">
...
<div v-if="loading" class="user">
<div class="user-avatar">
<skeleton-avatar effect="fade" :size="120" />
</div>
<div class="user-name">
<skeleton-text effect="fade">John Doe</skeleton-text>
</div>
</div>
...
</div>
</template>
<script>
// import Skeleton components
import { SkeletonAvatar, SkeletonText } from '@skeleton-elements/vue';
// import Skeleton styles
import '@skeleton-elements/vue/skeleton-elements.css';
export default {
// register components
components: {
SkeletonAvatar,
SkeletonText,
},
data() {
return {
loading: true,
};
},
};
</script>
Yes please! See the contributing guidelines for details.
This project is licensed under the terms of the MIT license.
2.0.0
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.
We found that @skeleton-elements/vue 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.