thesvg
This is the convenience package for @thesvg/icons. Both packages contain the same 7,600+ icons.
Install
npm install thesvg
Quick Start
import github from "thesvg/github";
github.svg; // raw SVG string
github.title; // "GitHub"
github.hex; // "181717"
github.categories; // ["DevTool", "VCS"]
github.variants; // { default: "<svg...>", mono: "<svg...>" }
Usage
// Named exports
import { svg, title, hex } from "thesvg/github";
// Barrel import (includes all icons)
import { github, vercel, stripe } from "thesvg";
// React
import { svg } from "thesvg/github";
const Logo = () => <div dangerouslySetInnerHTML={{ __html: svg }} />;
// Variants
import icon from "thesvg/github";
const dark = icon.variants["dark"];
CDN
<img src="https://thesvg.org/icons/github/default.svg" alt="GitHub" width="24" />
Packages
| Package | Description |
|---|---|
thesvg |
Convenience wrapper (this package) |
@thesvg/icons |
Core icon data |
@thesvg/react |
Typed React components |
@thesvg/cli |
CLI tool |
Community
Questions, icon requests, or ideas? Join the GLINR Discord, where theSVG has its own forum.
License
MIT. Icons under their respective upstream licenses.
Related Packages
@qlik/sprout-icons
Comprehensive icon library for the Sprout Design System, available as React and...
578,832
@incremark/icons
Incremark icons - SVG icon library for Vue, React, and Svelte components.
27,270
282
lucide-brands
The brand icons removed from lucide-react 1.1 (Github, Twitter, Linkedin, Youtub...
603
1
Version History
| Version | Released | License |
|---|---|---|
| 3.4.1 | MIT | |
| 3.4.0 | MIT | |
| 3.3.15 | MIT | |
| 3.3.14 | MIT | |
| 3.3.13 | MIT | |
| 3.3.12 | MIT | |
| 3.3.11 | MIT | |
| 3.3.10 | MIT | |
| 3.3.9 | MIT | |
| 3.3.8 | MIT | |
| 3.3.7 | MIT | |
| 3.3.6 | MIT | |
| 3.3.5 | MIT | |
| 3.3.4 | MIT | |
| 3.3.3 | MIT | |
| 3.3.2 | MIT | |
| 3.3.1 | MIT | |
| 3.2.21 | MIT | |
| 3.2.20 | MIT | |
| 3.2.19 | MIT | |
| 3.2.18 | MIT | |
| 3.2.17 | MIT | |
| 3.2.16 | MIT | |
| 3.2.15 | MIT | |
| 3.2.14 | MIT | |
| 3.2.13 | MIT | |
| 3.2.12 | MIT | |
| 3.2.11 | MIT | |
| 3.2.10 | MIT | |
| 3.2.9 | MIT |
Showing the latest 30 of 90. See every release on npm