Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bravo-skeleton

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bravo-skeleton

``` Extend from element-loading,it means u can use almost most functions of v-loading ```

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

bravo-skeleton

Extend from element-loading,it means u can use almost most functions of v-loading

install

npm i bravo-skeleton

//main.js
import bravoSkeleton from "bravo-skeleton"
Vue.install(bravoSkeleton)

tips

As default,the directive will show loading status.
if u use .block .pics .texts .circle modifies,it will show skeleton effect.
<div style="background-color: #334880;height: 900px"  v-skeleton.block.texts.circle.pics="loading"></div>

recommend combinations

1.[.block].circle.texts.pics
2.[.block].list
3.[.block].image

Skeleton-Options

AttributeDescriptionTypeAccepted ValuesDefault
blocktransform a inline element to inline-blockbooleanfalse
circlea circle prepend to the head of contextbooleanfalse
textsa self-computed component of text style skeletonbooleanfalse
picsa self-computed component of picture style skeletonbooleanfalse
lista self-computed component of list style skeleton,once u use this,the circle,texts,pics will not activebooleanfalse
imagea image skeletonbooleanfalse

Origin-Options

AttributeDescriptionTypeAccepted ValuesDefault
targetthe DOM node Loading needs to cover. Accepts a DOM object or a string. If it's a string, it will be passed to document.querySelector to get the corresponding DOM nodeobject/stringdocument.body
bodysame as the body modifier of v-skeletonbooleanfalse
fullscreensame as the fullscreen modifier of v-skeletonbooleantrue
locksame as the lock modifier of v-skeletonbooleanfalse
textloading text that displays under the spinnerstring
spinnerclass name of the custom spinnerstring
backgroundbackground color of the maskstring
customClasscustom class name for Loadingstring

--from dongjiayun

Keywords

FAQs

Package last updated on 10 Apr 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc