CodeCatch Icons is a React-based icon library intended for all CodeCatch React projects.
npm install codecatch-icons
# or
yarn add codecatch-icons
example usage
import { SunIcon } from 'codecatch-icons';
const Component = () => {
return (
<h4>
Don't stare directly at the <SunIcon size={24} color="orange" />
</h4>
);
};
output
Name | Default | Type | Description |
---|---|---|---|
size | 24px | number | string | Width and height of icon, can be any CSS unit |
color | #F8F9FA | string | Color of icon, can be any CSS legal color value |
title | string | Tooltip that specifies extra information about the icon | |
titleId | string | Id of the title prop |
All CodeCatch Icons include and extend the attributes defined in the MDN SVG Attribute reference.
-
Run
git clone https://github.com/codecatchorg/codecatch-icons.git
-
Run
npm install
to install the dependencies -
Create a new branch off main
-
Add the desired svg file to the
icons
directory -
Run
npm run build
-
Run
git add .
-
Commit your changes according to semantic-release requirements
-
Run
git push
-
Create a PR!