Skip to content

Relaxicons

Generate framework-ready icon components.

Relaxicons is a CLI that turns any icon (e.g. lucide:home) into a polished component for React, Vue, Angular, Laravel, Svelte, Solid, Web Components, and Next.js (RSC-safe).

Terminal window
npm install -g relaxicons
relaxicons init
relaxicons add lucide:home
  • Fetch & suggest icons from collections
  • Transform SVG (strip dimensions, set currentColor)
  • Output multi-framework components (React, Vue, Angular, Laravel, Svelte, Solid, Web Components, RSC)
  • Auto formatting & barrel export updates
  • Fuzzy suggestions & list filtering
ReactVueAngularSvelteSolidWeb ComponentsNext.js
  • Favorites & Recent tabs
  • Keyboard shortcuts (arrows + Enter)
  • Export selection and copy variants (CMD/SVG/DATA)
  • Per-collection stats and a top-icons carousel
  • relaxicons stats — counts per collection (supports -c)
  • relaxicons doctor --verbose — diagnostics
  • relaxicons cache-clear — placeholder

Manually copying SVGs into components is repetitive. Relaxicons standardizes attributes, injects accessibility-friendly defaults, and keeps your icon library organized. Focus on building—let the tooling handle boilerplate.

Head to Getting Started to create your relaxicons.config.json and add your first icon.