@oas-ui/icons
v2.3.1
Published
OAS-UI 图标(原创内联 SVG)
Maintainers
Readme
@oas-ui/icons
中文 | English
OAS-UI 图标包 —— 纯 SVG 图标集合,tree-shakable,按需导出图标路径。与 oas-icon 组件搭配使用渲染任意图标。
安装
pnpm add @oas-ui/icons使用
import { alertCirclePath } from '@oas-ui/icons'配合 oas-icon 组件使用:
<oas-icon path="alertCirclePath" size="24"></oas-icon>每个图标以路径导出(默认 24×24 viewBox),主题色由 CSS 继承,支持 light / dark 自动适配。
相关包
| 包 | 作用 |
| --- | --- |
| @oas-ui/ui | 组件库主包(含 oas-icon 组件) |
中文 | English
@oas-ui/icons — the icon package of OAS-UI. A pure SVG icon collection, tree-shakable, exporting icon paths on demand. Pair with the oas-icon component to render any icon.
Install
pnpm add @oas-ui/iconsUsage
import { alertCirclePath } from '@oas-ui/icons'Rendered via the oas-icon component:
<oas-icon path="alertCirclePath" size="24"></oas-icon>Each icon is exported as a path (24×24 viewBox by default). Colors inherit from CSS, with automatic light / dark adaptation.
Related packages
| Package | Purpose |
| --- | --- |
| @oas-ui/ui | Main UI library (includes the oas-icon component) |
