npm.io
0.1.1 • Published 5d ago

@softicons/react

Licence
MIT
Version
0.1.1
Deps
0
Size
372 kB
Vulns
0
Weekly
68

@softicons/react

npm downloads minzipped license

Tree-shakeable React components for the Softicons icon set — 24×24, mono-line, currentColor, zero runtime dependencies.

Install

npm i @softicons/react
# or
pnpm add @softicons/react
# or
yarn add @softicons/react

Use

import { ArrowRightIcon, HeartIcon } from "@softicons/react";

export function Toolbar() {
  return (
    <div>
      <ArrowRightIcon />
      <HeartIcon size={20} strokeWidth={1.5} color="#e06a8b" aria-label="Like" />
    </div>
  );
}
Prop Type Default
size number | string 24
color string currentColor
strokeWidth number | string 1.5
aria-label string — (adds role="img", else aria-hidden)
…any SVG attribute passed through

Named imports are individually tree-shakeable — your bundle only includes the icons you import. Every icon ships with TypeScript types.

MIT Softicons

Keywords