跳到正文
TakoAPI
返回技能列表

unicon

由 charlesrhoward 提供

Web & Frontend Development
456下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Help users add icons to their projects using the Unicon icon library.

描述

该技能的功能

Unicon is a CLI that searches and generates icons from 19,000+ icons across 9 libraries including Lucide, Phosphor, Tabler, and Simple Icons. It outputs framework-specific components for React, Vue, and Svelte, generating only the icons you actually use rather than bundling entire libraries.

Instead of installing and shipping entire icon packages like lucide-react or phosphor-react, Unicon generates only the components you need with zero external icon dependencies.

何时使用

  • Finding the right icon across multiple libraries with a single search
  • Adding icons to a React project without installing per-library npm packages
  • Generating tree-shakeable icon components for production builds
  • Bundling a curated set of brand logos from Simple Icons for a marketing site
  • Auditing an existing project to find unused or missing icon imports

示例工作流

输入

User asks: Add navigation icons to my React project

智能体
  1. 1

    Run unicon init --interactive to create .uniconrc.json with project settings

  2. 2

    Run unicon search 'arrow chevron menu' --pick to interactively select icons

  3. 3

    Run unicon add nav --query 'arrow chevron menu' to register a named bundle

  4. 4

    Run unicon sync to generate tree-shakeable React components

  5. 5

    Import with import { ArrowRight, Menu } from './src/icons/nav'

输出

Individual .tsx files for each selected icon in src/icons/nav/, ready to import with no external dependencies

安装

clawhub install charlesrhoward/unicon

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接