Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clds/icon

Package Overview
Dependencies
Maintainers
0
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clds/icon

## Adding new icon

  • 0.49.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
970
increased by140.1%
Maintainers
0
Weekly downloads
 
Created
Source

@clds/icon

Adding new icon

Icons are managed in a special template in src/template/index-icons.tsx. This package autogenerates two files: index.tsx and metadata.ts. index.tsx is for production apps that don't require icon metadata. metadata.ts is for development apps that need to access icon information such as name, keywords, or category.

In order to add your icon successfuly, you need to:

  1. add your icon in src/template/index-icons.tsx
  2. run pnpm nx workspace-generator generateCode from the package directory
  3. add icon to the stories: libs/components/icon/stories/Icons.stories.mdx
  4. commit
  5. if you forget to generate code from the template, GitHub would do it for you by adding new commit in your PR

Please don't edit main files directly since they will be overwritten next time someone changes something in the template.


npm version

Versioning

This library follows Semantic Versioning.

License

See LICENSE

FAQs

Package last updated on 06 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc