@rezics/icons
v0.1.2
Published
Tree-shakeable React icon library.
Readme
@rezics/icons
Tree-shakeable React icon library generated from SVG assets in src/.
Usage
Import all icons from the root
import { GithubIcon, GoogleIcon } from "@rezics/icons";Import by category
import { GithubIcon, GoogleIcon } from "@rezics/icons/brand";Import a single component directly
import GithubIcon from "@rezics/icons/components/brand/GithubIcon";Use in JSX
export function Example() {
return (
<div>
<GithubIcon />
<GoogleIcon width={32} height={32} />
</div>
);
}Development
- Put raw SVG files in category folders under
src/(e.g.src/brand/,src/payment/). - Run
bun run generateto create React components and barrel index files. - Run
bun run buildto output the publishable package intodist/.
Publish
npm publish