kk-web-components 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/package.json +1 -1
- package/src/ui-icon.js +1 -0
package/README.md
CHANGED
|
@@ -17,7 +17,6 @@ import "kk-web-components";
|
|
|
17
17
|
|
|
18
18
|
// Optionally configure UiIcon globally
|
|
19
19
|
window.UiIcon = {
|
|
20
|
-
version: "1.0",
|
|
21
20
|
filePath: "/icons/iconset.svg",
|
|
22
21
|
defaultSize: 24,
|
|
23
22
|
};
|
|
@@ -28,7 +27,7 @@ window.UiIcon = {
|
|
|
28
27
|
#### `<ui-icon>`
|
|
29
28
|
|
|
30
29
|
- **Attributes**:
|
|
31
|
-
- `
|
|
30
|
+
- `icon`: The name of the icon in the sprite sheet.
|
|
32
31
|
- `size`: The size of the icon (default: `24`).
|
|
33
32
|
- `rotation`: Rotate the icon in degrees (default: `0`).
|
|
34
33
|
- `viewbox`: Optional custom `viewBox` for the SVG.
|
|
@@ -36,6 +35,6 @@ window.UiIcon = {
|
|
|
36
35
|
Example:
|
|
37
36
|
|
|
38
37
|
```html
|
|
39
|
-
<ui-icon
|
|
40
|
-
<ui-icon
|
|
38
|
+
<ui-icon icon="home" size="32" rotation="45"></ui-icon>
|
|
39
|
+
<ui-icon icon="settings"></ui-icon>
|
|
41
40
|
```
|
package/package.json
CHANGED