1.0.3 • Published 5 years ago

@vortech-digital-pioneers/vtc-skeleton v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Built With Stencil

vtc-skeleton

Properties

PropertyAttributeDescriptionTypeDefault
animatedanimatedEnables or disables animation of the skeleton elementbooleanfalse
heightheightThe height of the skeleton elementstring'15px'
widthwidthThe width of the skeleton elementstring'100%'

CSS Custom Properties

NameDescription
--backgroundBackground of the skeleton element
--border-radiusBorder radius can be adjusted for e.g. round avatars
--ghost-colorColor of the accent used for the shimmer

Using this component

Script tag

  • Publish to NPM
  • Put a script tag similar to this <script src='https://unpkg.com/vtc-skeletont@1.0.3/dist/vtc-skeleton.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install vtc-skeleton --save
  • Put a script tag similar to this <script src='node_modules/vtc-skeleton/dist/vtc-skeleton.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • Run npm install vtc-skeleton --save
  • Add an import to the npm packages import vtc-skeleton;
  • Then you can use the element anywhere in your template, JSX, html etc

Built with StencilJS