JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 372
  • Score
    100M100P100Q94802F

A collection of reusable web components, including ui-icon and others.

Package Exports

  • kk-web-components
  • kk-web-components/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kk-web-components) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

KK Web Components

A collection of reusable web components.

Installation

npm install kk-web-components

Usage

Importing the Components

import "kk-web-components";

// Optionally configure UiIcon globally
window.UiIcon = {
  filePath: "/icons/iconset.svg",
  defaultSize: 24,
};

Components

<ui-icon>

  • Attributes:
    • icon: The name of the icon in the sprite sheet.
    • size: The size of the icon (default: 24).
    • rotation: Rotate the icon in degrees (default: 0).
    • viewbox: Optional custom viewBox for the SVG.

Example:

<ui-icon icon="home" size="32" rotation="45"></ui-icon>
<ui-icon icon="settings"></ui-icon>