You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/icon/icon.en-US.md
+6-21Lines changed: 6 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,12 @@
4
4
5
5
Icons are published and managed as a separate npm package. If you want to use it directly in your project, please install `tdesign-icons-react`.
6
6
7
+
On-demand icon importing is recommended to reduce the output size. Additionally, icons imported on-demand support arbitrary weight adjustments and up to four color fills, providing a better user experience.
Visit <astyle="margin: 04px"href='/icons-en'> TDesign Icons </a> to view and experience all supported icons.
11
+
</div>
12
+
7
13
### Import on-demand
8
14
9
15
SVG icons can be imported on demand. When using the Icon component in component development, SVG icons are imported on demand.
@@ -52,27 +58,6 @@ You can get all the name of icon by import manifest from the bundle `import { ma
52
58
53
59
if your project is in a no-network scenario, please use on-demand loading of icons. For example,`<t-icon name="add" />` should be changed to `<AddIcon />`
<p>Most icons were added to the icon library after version 0.3.0. If you find that the icon cannot be displayed normally after being imported, please check the version of tdesign-icons-react you have installed</p>
0 commit comments