Go to file
2023-03-28 16:10:35 +02:00
.devcontainer add devcontainer 2022-01-21 07:08:52 +00:00
.github/workflows ADD: readme.md file & git repo to package.json 2021-01-12 07:36:01 +00:00
src rupgrade to 7.1.0 2023-03-28 16:10:35 +02:00
.eslintrc initial commit 2021-01-11 20:15:24 +01:00
.gitignore initial commit 2021-01-11 20:15:24 +01:00
.prettierignore initial commit 2021-01-11 20:15:24 +01:00
.prettierrc initial commit 2021-01-11 20:15:24 +01:00
battery-full-outline.svg first changes 2023-03-19 15:53:29 +00:00
briefcase-outline.svg now it should work 2023-03-19 19:36:55 +01:00
CODE_OF_CONDUCT.md upgrade dependecies and ionicons version to v6.03 2022-10-01 06:27:52 +00:00
esbuild.config.mjs rupgrade to 7.1.0 2023-03-28 16:10:35 +02:00
hero_image.png 📝 update README 2021-02-04 10:59:38 +01:00
package.json rupgrade to 7.1.0 2023-03-28 16:10:35 +02:00
README.md update README 2022-02-12 07:27:59 +01:00
run-build.sh rupgrade to 7.1.0 2023-03-28 16:10:35 +02:00
yarn.lock rupgrade to 7.1.0 2023-03-28 16:10:35 +02:00

Ionicons React Component

hero_image.png

This package contains a React Component, which implements the latest version of the official Ionicons into React.

Installation 📦

To add the package to your existing React project just type in one of the following commands:

npm i @reacticons/ionicons

or

yarn add @reacticons/ionicons

Usage

import React from 'react';
import IonIcon from '@reacticons/ionicons';

export const Component = () => (
  <>
    <IonIcon name="bag-outline" />
  </>
);

Custom Size

You can specify the icon size by using the optional size prop.

<IonIcon name="bag-outline" size="small" />
<IonIcon name="bag-outline" size="large" />

Supported Icons

This package supports all Ionicons of the matching version. To see a full list of them, you can take a look at the official Ionicons website.

Hint

By the way, the <IonIcon> Component has the same attributes as a typical <span> element.