New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

raster-react

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raster-react

Retro pixel perfect icons with a charming aesthetic for your needs.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Retro pixel perfect icons with a charming aesthetic for your needs.

Each icon can be imported as a React component, which renders an inline SVG element. This way, only the icons that are imported into your project are included in the final bundle. The rest of the icons are tree-shaken away.

Example

Additional props can be passed to adjust the icon:

import { Heart } from 'raster-react';

const App = () => {
	return (
		<Heart
			color='#f54'
			size={13}
			radius={2}
			strokeWidth={1}
			className='h-13 w-13'
			{...props} // svg props (x, y, cx, cy, strokeDasharray ...)
		/>
	);
};

export default App;

Props

nametypedefault
sizenumber24
colorstringcurrentColor
strokeWidthnumber2
radiusnumber1
classNamestring

Keywords

Pixel

FAQs

Package last updated on 22 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts