@complagaet/react-basil

中文文档
1.0.1发布于 2026/04/05MITTypeScriptESM + CJS零依赖近 30 天下载 2054

Maintained fork of react-basil with modern tooling

原始使用文档
文档目录5 节
  1. Fork Notice
  2. What is @complagaet/react-basil?
  3. Install
  4. Usage
  5. License

@complagaet/react-basil

Basil icons for React

NPM

Fork Notice

This repository is a maintained fork of the original react-basil package by jonybekov.

The fork keeps the Basil icon set intact, while modernizing the TypeScript, build, and package tooling around it.

What is @complagaet/react-basil?

This is a React wrapper around the Basil icon set by Craftwork Design.

Here's what designer says

Really big set of icons, perfectly fitting to any design. Black minimalistic shapes are presented in two styles: outline and solid. 500 pieces were gathered in 9 the most used categories to help you in search of what you need. https://craftwork.design/downloads/basil/

Install

npm i @complagaet/react-basil

Usage

import React from 'react'
import { Home, HomeOutlined } from '@complagaet/react-basil'

function App() {
  return (
    <>
      <Home size={24} color='#111' />
      <HomeOutlined size={32} color='#109c12' />
    </>
  )
}

All icons accept regular SVG props plus:

<HomeOutlined size={32} color='#109c12' />
  • size: number or string, applied to width and height
  • color: applied through currentColor

License

This fork is distributed under the MIT license.

Original package: jonybekov/react-basil
Fork maintenance and tooling updates: complagaet

版本与发布记录

@complagaet/react-basil 共发布 1 个版本,首次发布于 2026/04/05;过去 12 个月发布了 1 个版本。

版本发布日期距今
1.0.1latest2026/04/057 个月前

关于 @complagaet/react-basil 的常见问题

@complagaet/react-basil 是什么?

Maintained fork of react-basil with modern tooling

如何安装 @complagaet/react-basil?

在项目目录运行 npm install @complagaet/react-basil,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(>=16.14.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@complagaet/react-basil 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@complagaet/react-basil 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@complagaet/react-basil 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.19.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@complagaet/react-basil 可以商用吗?

@complagaet/react-basil 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@complagaet/react-basil 的下载量有多少?

根据 npm 官方下载统计,@complagaet/react-basil 在 2026/10/11 – 2026/11/09 这 30 天内被下载 2,054 次,日均约 68 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@complagaet/react-basil 还在维护吗?

最新版本 1.0.1 发布于 2026/04/05(7 个月前);至今共发布 1 个版本,其中过去 12 个月发布了 1 个;首次发布于 2026/04/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。