New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@chameleon-ds/skeleton

Package Overview
Dependencies
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chameleon-ds/skeleton

Chameleon skeleton

latest
Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
1
-95.24%
Maintainers
6
Weekly downloads
 
Created
Source

Chameleon Skeleton

import { html } from "@open-wc/demoing-storybook";
import { withKnobs, text, number } from "@open-wc/demoing-storybook";
import "./chameleon-skeleton.js";

export default {
  title: "Components|Data and Visualizations/Skeleton",
  component: "chameleon-skeleton",
  decorators: [withKnobs],
  options: { selectedPanel: "storybookjs/docs/panel" },
};

Properties

Property NameType(s)Default ValueDescription
themeString"primary"The skeleton's theme ("primary", "secondary")
heightString"100%"The skeleton's height
widthString"100%"The skeleton's width
cHeightNumber50The skeleton's circle height

Examples

Default

export const Default = () => {
  const height = text("Height", "100%");
  const width = text("Width", "100%");
  const theme = text("Theme", "primary");
  const cHeight = number("Circle Height", 50);

  return theme === "primary"
    ? html`
        <chameleon-skeleton theme="primary" height="${height}" width="${width}">
        </chameleon-skeleton>
      `
    : theme === "secondary"
    ? html` <chameleon-skeleton theme="secondary" cHeight="${cHeight}">
      </chameleon-skeleton>`
    : "";
};

FAQs

Package last updated on 22 Jun 2020

Related posts