How to use the @ant-design/icons-svg/lib/manifest.default function in @ant-design/icons-svg

To help you get started, we’ve selected a few @ant-design/icons-svg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ant-design / ant-design-icons / packages / icons-react / scripts / utils.js View on Github external
exports.getComponentNameList = () => {
  const icons = [];
  Object.keys(manifest).forEach(theme => {
    manifest[theme].forEach(name => {
      const baseName = upperFirst(camelCase(name));
      icons.push({
        theme,
        componentName: baseName + upperFirst(themeMap[theme]),
        svgName: baseName + upperFirst(theme === 'twotone' ? 'twoTone' : theme),
      });
    });
  });
  return icons;
}

@ant-design/icons-svg

Abstract nodes for ant design icons.

MIT
Latest version published 10 months ago

Package Health Score

85 / 100
Full package analysis

Similar packages