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-componentsUsage
Importing the Components
import "kk-web-components";
// Optionally configure UiIcon globally
window.UiIcon = {
version: "1.0",
filePath: "/icons/iconset.svg",
defaultSize: 24,
};Components
<ui-icon>
- Attributes:
name: 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 customviewBoxfor the SVG.
Example:
<ui-icon name="home" size="32" rotation="45"></ui-icon>
<ui-icon name="settings"></ui-icon>