1.1.1 • Published 2 years ago

react-pangolicons v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

React-Pangolicons

Pangolicons, but for React! 🎉

🚀 Getting started

Install the package via npm:

npm install react-pangolicons

You can then import the Icons you want to use into your component.

import React from 'react';

// Import the icon you need

import { Pangolin } from 'react-pangolicons';

// In case the Iconname conflicts with one of your own Components,
// you can change the name on Import

import { Pangolin as PangolinIcon } from 'react-pangolicons';

export default () => {
	return (
		<div>
			...
			<Pangolin />
			<PangolinIcon />
		</div>
	);
};

All icons are converted to PascalCase to work with React out of the box.

Attributes

The component can receive a number of props to configure the icon.

PropertyTypeDescription
sizeString?The size of the Icon.
classNameString?A custom class name to append to the icon classes.
strokeWidthString?The stroke-width property of the svg
colorString?The color of the stroke
linejoinString?The linejoin of the stroke
linecapString?The linecap of the stroke
import React from 'react';
import { Pangolin } from 'react-pangolicons';

export default () => {
	return <Pangolin size={24} strokeWidth={1.5} />;
};

You could also use the spread operator to pass the props.

import React from 'react';
import { Pangolin } from 'react-pangolicons';

export default () => {
	const attributes = {
		size: 24,
		strokeWidth: 1.5,
		color: 'currentColor',
	};

	return <Pangolin {...attributes} />;
};

📋 License

React-Pangolicons is licensed under the MIT License.

🦄 Inspiration

Pangolicons is heavily inspired by Feather Icons & Lucide Icons.

1.1.1

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago