A modern, professional tool for converting SVG files into React, Vue, and Svelte components with syntax highlighting and PNG export capabilities.
Built by Antlers Labs - Crafting exceptional developer experiences.
- Multi-Framework Support: Generate components for React, Vue, and Svelte
- Dual Input Methods: Upload SVG files or paste SVG code directly
- Syntax Highlighting: Beautiful code display with Shiki-powered highlighting
- SVG Optimization: Built-in SVG optimization and cleanup
- TypeScript Support: Optional TypeScript interfaces and types
- Props Customization: Configurable component props for styling
- PNG Export: Convert SVG to PNG for download
- Modern UI: Clean, minimal, corporate-grade interface
- Real-time Preview: Instant preview of your SVG and generated code
- Node.js 18+
- npm, yarn, pnpm, or bun
- Clone the repository:
git clone https://github.com/antlerslabs/svg-react.git
cd svg-react.git- Install dependencies:
npm install
# or
yarn install
# or
pnpm install- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev- Open http://localhost:3000 in your browser.
- Framework: Next.js 15 with App Router
- Styling: Tailwind CSS 4
- UI Components: shadcn/ui + Kibo UI
- Syntax Highlighting: Shiki
- Icons: Lucide React + React Icons
- TypeScript: Full type safety
- SVG Processing: Custom optimization utilities
- Upload or Paste: Choose between uploading an SVG file or pasting SVG code
- Configure: Set your component name and select the target framework
- Customize: Choose generation options (optimization, TypeScript, props)
- Generate: Click generate to create your component
- Copy & Use: Copy the generated code and use it in your project
- React: TypeScript JSX components with props
- Vue: Single File Components with TypeScript support
- Svelte: Svelte components with TypeScript
├── app/ # Next.js app directory
│ ├── page.tsx # Main application page
│ └── globals.css # Global styles
├── components/ # Reusable components
│ └── ui/ # UI component library
├── lib/ # Utility functions
│ ├── svg-utils.ts # SVG processing utilities
│ └── component-generators.ts # Component generation logic
└── public/ # Static assets
We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ by Antlers Labs
- Website: antlerslabs.com
- Twitter: @antlerslabs
- GitHub: @antlerslabs
Crafting exceptional developer experiences, one tool at a time.