@zenkigen-inc/component-icons 1.14.5 → 1.15.0

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -66,13 +66,13 @@ yarn build:all
66
66
 
67
67
  ### 4. アイコンの利用
68
68
 
69
- ビルド後、追加したアイコンは `iconElements` オブジェクトから使用できます:
69
+ ビルド後、追加したアイコンは Icon コンポーネントで利用できます:
70
70
 
71
71
  ```tsx
72
- import { iconElements } from '@zenkigen-inc/component-icons';
72
+ import { Icon } from '@zenkigen-inc/component-ui';
73
73
 
74
74
  // 追加したアイコンを表示
75
- <div>{iconElements['new-icon-name']}</div>;
75
+ <Icon name="new-icon-name" />;
76
76
  ```
77
77
 
78
78
  アイコン名は、ファイル名から拡張子を除いたものになります (例: `arrow-right.svg` → `'arrow-right'`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenkigen-inc/component-icons",
3
- "version": "1.14.5",
3
+ "version": "1.15.0",
4
4
  "repository": "https://github.com/zenkigen/zenkigen-component",
5
5
  "license": "MIT",
6
6
  "publishConfig": {