1.0.1 • Published 2 years ago

volkeno-react-skeleton v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

volkeno-react-skeleton

volkeno-react-skeleton lets you create beautiful animated loading skeletons that automatically adapt to your react application.

NPM JavaScript Style Guide

Install

npm install --save volkeno-react-skeleton

Usage

import React, { Component } from 'react'

import VolkenoSkeleton from 'volkeno-react-skeleton'
import 'volkeno-react-skeleton/dist/index.css'

class Example extends Component {
  render() {
    <VolkenoSkeleton
      variant='rect'
      count={1}
      width={30}
      height={30}
      style={{ marginTop: '1rem' }}
    />
  }
}

Configuration - Props

PropertyTypeRequireDefaultDescription
variantstringtrue...Skeleton type (circle, rect, text)
widthstring or numberfalse100pxThe width of the skeleton
heightstring or numberfalse100pxThe height of each skeleton line
borderRadiusstring or numberfalse10pxThe border radius of the skeleton
styleReact.CSSPropertiesfalse...Apply a style to your skeleton
countnumberfalse1The number of lines of skeletons to render.
classNamestringfalse...A custom class name for the individual skeleton elements

License

MIT © VolkenoMakers