tdesign-icons-vue-next is an icon library specifically designed for Vue 3 applications, providing a comprehensive set of icons consistent with the TDesign design system. Its current stable version is 0.4.4. The library offers multiple integration strategies, allowing developers to choose between SVG sprite-based icons (`Icon`), IconFont-based icons (`IconFont`), or importing individual icon components (e.g., `CloseIcon`) for optimized bundle sizes. This flexibility is a key differentiator, catering to various project needs and performance considerations. While a specific release cadence isn't published, icon libraries typically follow a slower, feature-driven update cycle, ensuring stability for long-term projects. It serves as an essential companion for developers building applications with the TDesign UI framework in Vue 3 environments.
npm install tdesign-icons-vue-nextVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates the three primary ways to use TDesign icons in a Vue 3 component: using the generic Icon component for SVG sprites, the IconFont component, and importing individual icon components.
Ensure your project is running Vue 3 (>=3.0.0) and update package names and imports accordingly to `tdesign-icons-vue-next`.
Refer to the TDesign icon documentation or the package's source for a complete list of available icon names.
For applications using a large number of icons, `Icon` or `IconFont` might be simpler. For highly optimized bundles using only a few icons, prefer direct imports like `import { CloseIcon } from 'tdesign-icons-vue-next';`Ensure you have `import { Icon } from 'tdesign-icons-vue-next';` at the top of your script and it's included in the `components` option of your Vue component.Verify that you are importing the correct `Icon` or `IconFont` component and that your Vue and `tdesign-icons-vue-next` versions are compatible and correctly set up for TypeScript.
Check the official TDesign icon documentation for the exact names of available icons. Custom icons would require extending the library or integrating them separately.