Go to file
2022-07-22 09:48:57 +00:00
.github/workflows update dependencies & build script 2022-05-14 05:59:57 +00:00
src update dependencies & build script 2022-05-14 05:59:57 +00:00
.eslintrc initial commit 2021-01-12 13:41:54 +00:00
.gitignore initial commit 2021-01-12 13:41:54 +00:00
.prettierignore initial commit 2021-01-12 13:41:54 +00:00
.prettierrc initial commit 2021-01-12 13:41:54 +00:00
CODE_OF_CONDUCT.md update dependencies & build script 2022-05-14 05:59:57 +00:00
hero.png UPDATE: readme 2021-01-27 18:20:37 +01:00
LICENSE.md Create LICENSE.md 2021-01-27 18:19:10 +01:00
package.json upgrade to v1.9.1 2022-07-22 09:48:57 +00:00
README.md update dependencies & build script 2022-05-14 05:59:57 +00:00
run-build.sh initial commit 2021-01-12 13:41:54 +00:00
tsconfig.json initial commit 2021-01-12 13:41:54 +00:00
yarn.lock upgrade to v1.9.1 2022-07-22 09:48:57 +00:00

Bootstrap Icons React Component

This package contains a simple React Component, which implements the latest version of Bootstrap Icons into React.

Install

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

npm i @reacticons/bootstrap-icons

or

yarn add @reacticons/bootstrap-icons

Usage

import React from 'react';
import Icon from '@reacticons/bootstrap-icons';

export const Component = () => (
  <>
    <Icon name="award" />
  </>
);

Supported Icons

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

Hint

By the way, the <Icon> Component has the same attributes as a typical <div> element.

License

MIT

This package is based on the open source Bootstrap Icons project.