React Project
Complete guide for installing and using Bitrix24 icons in React applications.
Installation
Adding to React Project
Install the Bitrix24 Icons package using your preferred package manager:
pnpm add @bitrix24/b24icons-react
yarn add @bitrix24/b24icons-react
npm install @bitrix24/b24icons-react
bun add @bitrix24/b24icons-react
Usage Examples
Basic Usage
Import icons as React-components.
Common-service::Bitrix24Icon
Generic Icon Component
Use the B24Icon component for easy access to icons.
The component uses dynamic imports via React.lazy() to load icons as needed.
This does not break the tree-shaking principle because tree-shaking works with static imports, while dynamic imports
are used for load optimization, loading only the necessary parts of the code when they are needed.
Specify the full icon name with the
nameprop, e.g.,Main::CopilotAiIcon.
Button::TariffIcon
Main::CopilotAiIcon
Main::AiIcon