@vortech-digital-pioneers/vtc-skeleton
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Built With Stencil

vtc-skeleton

Properties

Property Attribute Description Type Default
animated animated Enables or disables animation of the skeleton element boolean false
height height The height of the skeleton element string '15px'
width width The width of the skeleton element string '100%'

CSS Custom Properties

Name Description
--background Background of the skeleton element
--border-radius Border radius can be adjusted for e.g. round avatars
--ghost-color Color 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

Package Sidebar

Install

npm i @vortech-digital-pioneers/vtc-skeleton

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

239 kB

Total Files

48

Last publish

Collaborators

  • vtc_mri
  • vtc-mfi
  • vortechdp