# Icon

> 通过 SVG 数据、产品注册表和统一渲染器，为 Toolbar 与复合控件提供一致的图标。

网页来源：/components/icon

版本：@quirekit/ui 0.3.1；源码修订：d79a6b48d00e+worktree。此文档对应当前源码构建，接入方式以开始使用为准。

接入前置：[开始使用](/raw/components/getting-started.md)（Vue、样式、主题与图标 Provider）。

## 基本用法

在应用外层用 `QuireIconProvider` 提供注册表，通过 `name` 引用图标。也可以直接传入 `data`，此时无需 Provider。

### 示例：icon/basic

文件：`basic.vue`

```vue
<script setup lang="ts">
import { quireIconRegistry, quireKitEditorIconData } from '@quirekit/ui';
import { QuireIcon, QuireIconProvider } from '@quirekit/ui/vue';
</script>
<template>
  <div class="flex flex-wrap items-center gap-qk-group p-qk-surface">
    <QuireIconProvider :registry="quireIconRegistry"><QuireIcon name="fileText" label="文档" /></QuireIconProvider>
    <QuireIcon :data="quireKitEditorIconData.check" label="已完成" />
  </div>
</template>
```

## 图标目录

通过分组树选择“全部”、通用、编辑器或具体子组。分组与图标列表独立滚动，搜索栏始终位于列表顶部；切换分组或搜索后，从第一项浏览结果。网格保留语义顺序，方向与配对操作相邻排列；搜索支持名称、Lucide 原名和中文含义。

每张卡片直接提供“名称”和“代码”两个复制按钮，一次点击即可复制注册表名称或可直接使用的 `QuireIcon` 组件代码。卡片直接标明“Lucide”或“custom”，悬停可查看完整名称和中文含义。Lucide 覆盖常用界面图形，QuireKit 自绘补充文字方向、分页、表格边框等专用语义。

### 图标目录

通过 QuireIconProvider 注册 quireIconRegistry，然后按 name 使用 QuireIcon。

| 名称 | 范围 | 分类 | 关键词 |
| --- | --- | --- | --- |
| chevronLeft | general | chevrons | 向左、折叠与翻页、chevron left、chevron-left |
| chevronRight | general | chevrons | 向右、折叠与翻页、chevron right、chevron-right |
| chevronUp | general | chevrons | 向上、折叠与翻页、chevron up、chevron-up |
| chevronDown | general | chevrons | 向下、折叠与翻页、chevron down、chevron-down |
| chevronsLeft | general | chevrons | 向左翻页、折叠与翻页、chevrons left、chevrons-left |
| chevronsRight | general | chevrons | 向右翻页、折叠与翻页、chevrons right、chevrons-right |
| chevronsUp | general | chevrons | 向上展开、折叠与翻页、chevrons up、chevrons-up |
| chevronsDown | general | chevrons | 向下展开、折叠与翻页、chevrons down、chevrons-down |
| chevronFirst | general | chevrons | 第一页、折叠与翻页、chevron first、chevron-first |
| chevronLast | general | chevrons | 最后一页、折叠与翻页、chevron last、chevron-last |
| chevronsUpDown | general | chevrons | 上下展开、折叠与翻页、chevrons up down、chevrons-up-down |
| chevronsLeftRight | general | chevrons | 左右展开、折叠与翻页、chevrons left right、chevrons-left-right |
| arrowLeft | general | arrows | 左箭头、方向与移动、arrow left、arrow-left |
| arrowRight | general | arrows | 右箭头、方向与移动、arrow right、arrow-right |
| arrowUp | general | arrows | 上箭头、方向与移动、arrow up、arrow-up |
| arrowDown | general | arrows | 下箭头、方向与移动、arrow down、arrow-down |
| arrowUpLeft | general | arrows | 左上、方向与移动、arrow up left、arrow-up-left |
| arrowUpRight | general | arrows | 右上、方向与移动、arrow up right、arrow-up-right |
| arrowDownLeft | general | arrows | 左下、方向与移动、arrow down left、arrow-down-left |
| arrowDownRight | general | arrows | 右下、方向与移动、arrow down right、arrow-down-right |
| arrowLeftRight | general | arrows | 左右交换、方向与移动、arrow left right、arrow-left-right |
| arrowUpDown | general | arrows | 上下交换、方向与移动、arrow up down、arrow-up-down |
| moveLeft | general | arrows | 向左移动、方向与移动、move left、move-left |
| moveRight | general | arrows | 向右移动、方向与移动、move right、move-right |
| moveUp | general | arrows | 向上移动、方向与移动、move up、move-up |
| moveDown | general | arrows | 向下移动、方向与移动、move down、move-down |
| cornerDownLeft | general | arrows | 向左返回、方向与移动、corner down left、corner-down-left |
| cornerDownRight | general | arrows | 向右返回、方向与移动、corner down right、corner-down-right |
| move | general | arrows | 移动、方向与移动、move、move |
| moveHorizontal | general | arrows | 水平移动、方向与移动、move horizontal、move-horizontal |
| moveVertical | general | arrows | 垂直移动、方向与移动、move vertical、move-vertical |
| plus | general | actions | 添加、常用操作、plus、plus、tableInsertGroup |
| minus | general | actions | 减少、常用操作、minus、minus |
| check | general | actions | 确认、常用操作、check、check |
| close | general | actions | 关闭、清除、常用操作、close、x |
| copy | general | actions | 复制、常用操作、copy、copy |
| clipboard | general | actions | 剪贴板、常用操作、clipboard、clipboard |
| clipboardCopy | general | actions | 复制到剪贴板、常用操作、clipboard copy、clipboard-copy |
| clipboardPaste | general | actions | 粘贴、常用操作、clipboard paste、clipboard-paste |
| scissors | general | actions | 剪切、常用操作、scissors、scissors |
| edit | general | actions | 编辑、常用操作、edit、pencil |
| undo | general | actions | 撤销、常用操作、undo、undo-2 |
| redo | general | actions | 重做、常用操作、redo、redo-2 |
| trash | general | actions | 删除、常用操作、trash、trash-2、tableDeleteGroup |
| archive | general | actions | 归档、常用操作、archive、archive |
| search | general | actions | 搜索、常用操作、search、search |
| searchX | general | actions | 无搜索结果、常用操作、search x、search-x |
| filter | general | actions | 筛选、常用操作、filter、funnel |
| listFilter | general | actions | 列表筛选、常用操作、list filter、list-filter |
| arrowDownAZ | general | actions | 字母升序、常用操作、arrow down az、arrow-down-a-z |
| arrowDownZA | general | actions | 字母降序、常用操作、arrow down za、arrow-down-z-a |
| arrowDownNarrowWide | general | actions | 从少到多、常用操作、arrow down narrow wide、arrow-down-narrow-wide |
| arrowDownWideNarrow | general | actions | 从多到少、常用操作、arrow down wide narrow、arrow-down-wide-narrow |
| refreshCw | general | actions | 刷新、常用操作、refresh cw、refresh-cw |
| refreshCcw | general | actions | 反向刷新、常用操作、refresh ccw、refresh-ccw |
| settings | general | actions | 设置、常用操作、settings、settings |
| slidersHorizontal | general | actions | 水平设置、常用操作、sliders horizontal、sliders-horizontal |
| slidersVertical | general | actions | 垂直设置、常用操作、sliders vertical、sliders-vertical |
| moreHorizontal | general | actions | 更多、常用操作、more horizontal、ellipsis |
| moreVertical | general | actions | 更多选项、常用操作、more vertical、ellipsis-vertical |
| menu | general | actions | 菜单、常用操作、menu、menu |
| file | general | files | 文件、文件与文件夹、file、file |
| fileText | general | files | 文本文档、文件与文件夹、file text、file-text、canvas |
| markdown | general | files | Markdown 文档、文件与文件夹、markdown、custom |
| files | general | files | 多个文件、文件与文件夹、files、files |
| filePlus | general | files | 新建文件、文件与文件夹、file plus、file-plus |
| fileMinus | general | files | 移除文件、文件与文件夹、file minus、file-minus |
| fileSearch | general | files | 查找文件、文件与文件夹、file search、file-search |
| fileCheck | general | files | 文件已确认、文件与文件夹、file check、file-check |
| fileX | general | files | 文件错误、文件与文件夹、file x、file-x |
| fileClock | general | files | 文件历史、文件与文件夹、file clock、file-clock |
| fileLock | general | files | 文件锁定、文件与文件夹、file lock、file-lock |
| fileDown | general | files | 下载文件、文件与文件夹、file down、file-down |
| fileUp | general | files | 上传文件、文件与文件夹、file up、file-up |
| fileInput | general | files | 导入文件、文件与文件夹、file input、file-input |
| fileOutput | general | files | 导出文件、文件与文件夹、file output、file-output |
| fileImage | general | files | 图片文件、文件与文件夹、file image、file-image |
| fileSpreadsheet | general | files | 电子表格、文件与文件夹、file spreadsheet、file-spreadsheet |
| fileCode | general | files | 代码文件、文件与文件夹、file code、file-code |
| fileJson | general | files | JSON 文件、文件与文件夹、file json、file-json |
| fileArchive | general | files | 压缩文件、文件与文件夹、file archive、file-archive |
| folder | general | files | 文件夹、文件与文件夹、folder、folder |
| folderOpen | general | files | 打开文件夹、文件与文件夹、folder open、folder-open |
| folderPlus | general | files | 新建文件夹、文件与文件夹、folder plus、folder-plus |
| folderMinus | general | files | 移除文件夹、文件与文件夹、folder minus、folder-minus |
| folderSearch | general | files | 查找文件夹、文件与文件夹、folder search、folder-search |
| folderInput | general | files | 导入文件夹、文件与文件夹、folder input、folder-input |
| folderOutput | general | files | 导出文件夹、文件与文件夹、folder output、folder-output |
| save | general | files | 保存、文件与文件夹、save、save |
| saveAll | general | files | 全部保存、文件与文件夹、save all、save-all |
| download | general | files | 下载、文件与文件夹、download、download |
| upload | general | files | 上传、文件与文件夹、upload、upload |
| printer | general | files | 打印、文件与文件夹、printer、printer |
| circleCheck | general | status | 成功、状态与反馈、circle check、circle-check-big |
| circleX | general | status | 错误、状态与反馈、circle x、circle-x |
| circleInfo | general | status | 信息、状态与反馈、circle info、info |
| circleAlert | general | status | 注意、状态与反馈、circle alert、circle-alert |
| triangleAlert | general | status | 警告、状态与反馈、triangle alert、triangle-alert |
| circleHelp | general | status | 帮助、状态与反馈、circle help、circle-question-mark |
| circlePlus | general | status | 添加状态、状态与反馈、circle plus、circle-plus |
| circleMinus | general | status | 减少状态、状态与反馈、circle minus、circle-minus |
| ban | general | status | 禁止、状态与反馈、ban、ban |
| loaderCircle | general | status | 加载、状态与反馈、loader circle、loader-circle |
| checkCheck | general | status | 全部确认、状态与反馈、check check、check-check |
| listX | general | status | 全部拒绝、状态与反馈、list x、list-x |
| bell | general | status | 通知、状态与反馈、bell、bell |
| bellOff | general | status | 关闭通知、状态与反馈、bell off、bell-off |
| bellRing | general | status | 新通知、状态与反馈、bell ring、bell-ring |
| eye | general | status | 显示、可见、显示密码、状态与反馈、eye、eye |
| eyeOff | general | status | 隐藏、不可见、隐藏密码、状态与反馈、eye off、eye-off |
| star | general | status | 收藏、状态与反馈、star、star |
| heart | general | status | 喜欢、状态与反馈、heart、heart |
| bookmark | general | status | 书签、状态与反馈、bookmark、bookmark |
| thumbsUp | general | status | 赞、有帮助、状态与反馈、thumbs up、thumbs-up |
| thumbsDown | general | status | 踩、没有帮助、状态与反馈、thumbs down、thumbs-down |
| bookmarkCheck | general | status | 已加书签、状态与反馈、bookmark check、bookmark-check |
| flag | general | status | 标记、状态与反馈、flag、flag |
| user | general | people | 用户、用户与权限、user、user |
| users | general | people | 多人、用户与权限、users、users |
| userPlus | general | people | 添加用户、用户与权限、user plus、user-plus |
| userMinus | general | people | 移除用户、用户与权限、user minus、user-minus |
| userCheck | general | people | 用户已确认、用户与权限、user check、user-check |
| userX | general | people | 拒绝用户、用户与权限、user x、user-x |
| contact | general | people | 联系人、用户与权限、contact、contact |
| logIn | general | people | 登录、用户与权限、log in、log-in |
| logOut | general | people | 退出、用户与权限、log out、log-out |
| lock | general | people | 锁定、用户与权限、lock、lock |
| lockOpen | general | people | 解锁、用户与权限、lock open、lock-open |
| keyRound | general | people | 密钥、用户与权限、key round、key-round |
| shield | general | people | 保护、用户与权限、shield、shield |
| shieldCheck | general | people | 安全、用户与权限、shield check、shield-check |
| shieldAlert | general | people | 安全警告、用户与权限、shield alert、shield-alert |
| messageSquare | general | communication | 消息、交流与协作、message square、message-square |
| messagesSquare | general | communication | 讨论、交流与协作、messages square、messages-square |
| messageCircle | general | communication | 聊天、交流与协作、message circle、message-circle |
| mail | general | communication | 邮件、交流与协作、mail、mail |
| mailOpen | general | communication | 已读邮件、交流与协作、mail open、mail-open |
| send | general | communication | 发送、交流与协作、send、send |
| reply | general | communication | 回复、交流与协作、reply、reply |
| replyAll | general | communication | 回复全部、交流与协作、reply all、reply-all |
| forward | general | communication | 转发、交流与协作、forward、forward |
| share | general | communication | 分享、交流与协作、share、share |
| share2 | general | communication | 共享、交流与协作、share2、share-2 |
| atSign | general | communication | 提及、交流与协作、at sign、at-sign |
| link | general | communication | 链接、交流与协作、link、link |
| linkOff | general | communication | 取消链接、断开链接、交流与协作、link off、unlink |
| externalLink | general | communication | 外部链接、交流与协作、external link、external-link |
| paperclip | general | communication | 附件、交流与协作、paperclip、paperclip |
| calendar | general | time | 日历、日期与时间、calendar、calendar |
| calendarDays | general | time | 日期、日期与时间、calendar days、calendar-days |
| calendarCheck | general | time | 确认日期、日期与时间、calendar check、calendar-check |
| calendarPlus | general | time | 添加日程、日期与时间、calendar plus、calendar-plus |
| calendarRange | general | time | 日期范围、日期与时间、calendar range、calendar-range |
| clock | general | time | 时间、日期与时间、clock、clock |
| history | general | time | 历史记录、日期与时间、history、history |
| timer | general | time | 计时、日期与时间、timer、timer |
| hourglass | general | time | 等待、日期与时间、hourglass、hourglass |
| house | general | workspace | 主页、布局与工作区、house、house |
| layoutDashboard | general | workspace | 仪表盘、布局与工作区、layout dashboard、layout-dashboard |
| layoutGrid | general | workspace | 网格布局、布局与工作区、layout grid、layout-grid |
| layoutList | general | workspace | 列表布局、布局与工作区、layout list、layout-list |
| panelLeft | general | workspace | 左侧栏、布局与工作区、panel left、panel-left |
| panelRight | general | workspace | 右侧栏、布局与工作区、panel right、panel-right |
| panelTop | general | workspace | 顶部面板、布局与工作区、panel top、panel-top |
| panelBottom | general | workspace | 底部面板、布局与工作区、panel bottom、panel-bottom |
| panelLeftOpen | general | workspace | 展开左侧栏、布局与工作区、panel left open、panel-left-open |
| panelLeftClose | general | workspace | 收起左侧栏、布局与工作区、panel left close、panel-left-close |
| panelRightOpen | general | workspace | 展开右侧栏、布局与工作区、panel right open、panel-right-open |
| panelRightClose | general | workspace | 收起右侧栏、布局与工作区、panel right close、panel-right-close |
| columns2 | general | workspace | 两列、布局与工作区、columns2、columns-2 |
| columns | general | workspace | 三列、布局与工作区、columns、columns-3 |
| rows2 | general | workspace | 两行、布局与工作区、rows2、rows-2 |
| rows3 | general | workspace | 三行、布局与工作区、rows3、rows-3 |
| maximize | general | workspace | 放大、布局与工作区、maximize、maximize-2 |
| minimize | general | workspace | 缩小、布局与工作区、minimize、minimize-2 |
| expand | general | workspace | 展开、布局与工作区、expand、expand |
| shrink | general | workspace | 收缩、布局与工作区、shrink、shrink |
| zoomIn | general | workspace | 放大视图、布局与工作区、zoom in、zoom-in |
| zoomOut | general | workspace | 缩小视图、布局与工作区、zoom out、zoom-out |
| scan | general | workspace | 适应窗口、布局与工作区、scan、scan |
| locateFixed | general | workspace | 定位、布局与工作区、locate fixed、locate-fixed |
| gripVertical | general | workspace | 垂直拖动柄、布局与工作区、grip vertical、grip-vertical |
| gripHorizontal | general | workspace | 水平拖动柄、布局与工作区、grip horizontal、grip-horizontal |
| mousePointer2 | general | workspace | 指针、布局与工作区、mouse pointer2、mouse-pointer-2 |
| hand | general | workspace | 抓手、布局与工作区、hand、hand |
| smile | general | media | 表情、微笑、媒体与设备、smile、smile |
| pawPrint | general | media | 动物、媒体与设备、paw print、paw-print |
| utensils | general | media | 食物、餐饮、媒体与设备、utensils、utensils |
| car | general | media | 旅行、汽车、媒体与设备、car、car |
| volleyball | general | media | 活动、运动、媒体与设备、volleyball、volleyball |
| image | general | media | 图片、媒体与设备、image、image |
| images | general | media | 多张图片、媒体与设备、images、images |
| imagePlus | general | media | 添加图片、媒体与设备、image plus、image-plus |
| imageUp | general | media | 上传图片、媒体与设备、image up、image-up |
| imageDown | general | media | 下载图片、媒体与设备、image down、image-down |
| camera | general | media | 拍照、媒体与设备、camera、camera |
| video | general | media | 视频、媒体与设备、video、video |
| videoOff | general | media | 关闭视频、媒体与设备、video off、video-off |
| play | general | media | 播放、媒体与设备、play、play |
| pause | general | media | 暂停、媒体与设备、pause、pause |
| square | general | media | 停止、正方形、媒体与设备、square、square |
| skipBack | general | media | 上一首、媒体与设备、skip back、skip-back |
| skipForward | general | media | 下一首、媒体与设备、skip forward、skip-forward |
| volume2 | general | media | 音量、媒体与设备、volume2、volume-2 |
| volumeX | general | media | 静音、媒体与设备、volume x、volume-x |
| mic | general | media | 麦克风、媒体与设备、mic、mic |
| micOff | general | media | 关闭麦克风、媒体与设备、mic off、mic-off |
| headphones | general | media | 耳机、媒体与设备、headphones、headphones |
| monitor | general | media | 桌面、媒体与设备、monitor、monitor |
| appWindow | general | media | 窗口、渲染方式、媒体与设备、app window、app-window |
| smartphone | general | media | 手机、媒体与设备、smartphone、smartphone |
| tablet | general | media | 平板、媒体与设备、tablet、tablet |
| sun | general | media | 浅色、媒体与设备、sun、sun |
| moon | general | media | 深色、媒体与设备、moon、moon |
| sunMoon | general | media | 跟随系统、媒体与设备、sun moon、sun-moon |
| sparkles | general | tools | 智能辅助、工具与数据、sparkles、sparkles |
| bot | general | tools | 助手、工具与数据、bot、bot |
| wandSparkles | general | tools | 智能处理、工具与数据、wand sparkles、wand-sparkles |
| zap | general | tools | 快捷、工具与数据、zap、zap |
| lightbulb | general | tools | 提示、工具与数据、lightbulb、lightbulb |
| languages | general | tools | 语言、工具与数据、languages、languages |
| globe | general | tools | 全球、工具与数据、globe、globe |
| wifi | general | tools | 联网、工具与数据、wifi、wifi |
| wifiOff | general | tools | 断网、工具与数据、wifi off、wifi-off |
| cloud | general | tools | 云端、工具与数据、cloud、cloud |
| cloudUpload | general | tools | 上传云端、工具与数据、cloud upload、cloud-upload |
| cloudDownload | general | tools | 下载云端、工具与数据、cloud download、cloud-download |
| cloudCheck | general | tools | 云端已同步、工具与数据、cloud check、cloud-check |
| cloudOff | general | tools | 离线、工具与数据、cloud off、cloud-off |
| code | general | tools | 代码、工具与数据、code、code |
| codeXml | general | tools | 标记语言、工具与数据、code xml、code-xml、svg |
| workflow | general | tools | 流程图、工具与数据、workflow、workflow |
| network | general | tools | 关系网络、思维导图、工具与数据、network、network |
| gitBranch | general | tools | 分支连接、工具与数据、git branch、git-branch |
| spline | general | tools | 连接路径、曲线、连线、工具与数据、spline、spline |
| waypoints | general | tools | 折点调整、路径控制点、工具与数据、waypoints、waypoints |
| terminal | general | tools | 终端、工具与数据、terminal、terminal |
| database | general | tools | 数据库、工具与数据、database、database |
| chartColumn | general | tools | 柱状图、工具与数据、chart column、chart-column |
| chartLine | general | tools | 折线图、工具与数据、chart line、chart-line |
| chartPie | general | tools | 饼图、工具与数据、chart pie、chart-pie |
| chartBar | general | tools | 条形图、工具与数据、chart bar、chart-bar |
| chartScatter | general | tools | 散点图、工具与数据、chart scatter、chart-scatter |
| chartRadar | general | tools | 雷达图、工具与数据、chart radar、custom |
| qrCode | general | tools | 二维码、工具与数据、qr code、qr-code |
| chartArea | general | tools | 面积图、工具与数据、chart area、chart-area |
| chartDoughnut | general | tools | 圆环图、工具与数据、chart doughnut、custom |
| keyboard | general | tools | 键盘、工具与数据、keyboard、keyboard |
| command | general | tools | 快捷命令、工具与数据、command、command |
| extension | general | tools | 扩展、工具与数据、extension、puzzle |
| wrench | general | tools | 修复、工具与数据、wrench、wrench、tableRepair |
| circle | general | shapes | 圆形、形状与层次、circle、circle |
| rectangleHorizontal | general | shapes | 横向矩形、形状与层次、rectangle horizontal、rectangle-horizontal |
| rectangleVertical | general | shapes | 纵向矩形、形状与层次、rectangle vertical、rectangle-vertical |
| triangle | general | shapes | 三角形、形状与层次、triangle、triangle |
| diamond | general | shapes | 菱形、形状与层次、diamond、diamond |
| pentagon | general | shapes | 五边形、形状与层次、pentagon、pentagon |
| hexagon | general | shapes | 六边形、形状与层次、hexagon、hexagon |
| minusSquare | general | shapes | 方框减号、形状与层次、minus square、square-minus |
| plusSquare | general | shapes | 方框加号、形状与层次、plus square、square-plus |
| layers | general | shapes | 图层、形状与层次、layers、layers |
| bringToFront | general | shapes | 置于顶层、形状与层次、bring to front、bring-to-front |
| sendToBack | general | shapes | 置于底层、形状与层次、send to back、send-to-back |
| group | general | shapes | 组合、形状与层次、group、group |
| ungroup | general | shapes | 取消组合、形状与层次、ungroup、ungroup |
| stop | general | indicators | 停止、紧凑指示、stop、custom |
| triangleUp | general | indicators | 向上步进、紧凑指示、triangle up、custom |
| triangleDown | general | indicators | 向下步进、紧凑指示、triangle down、custom |
| bold | editor | characters | 加粗、字符格式、bold、bold |
| italic | editor | characters | 斜体、字符格式、italic、italic |
| underline | editor | characters | 下划线、字符格式、underline、underline |
| strike | editor | characters | 删除线、字符格式、strike、strikethrough |
| subscript | editor | characters | 下标、字符格式、subscript、subscript |
| superscript | editor | characters | 上标、字符格式、superscript、superscript |
| formatPainter | editor | characters | 格式刷、字符格式、format painter、paintbrush |
| clearFormatting | editor | characters | 清除格式、字符格式、clear formatting、eraser |
| textColor | editor | characters | 字体颜色、字符格式、text color、custom |
| fillColor | editor | characters | 填充颜色、背景色、底纹、单元格填充、颜料桶、字符格式、fill color、custom、tableCellFill |
| textHighlight | editor | characters | 文本高亮、字符格式、text highlight、custom |
| outlineColor | editor | characters | 轮廓颜色、字符格式、outline color、custom |
| pipette | editor | characters | 取色器、吸管、字符格式、pipette、pipette |
| fontSizeDecrease | editor | characters | 减小字号、字符格式、font size decrease、custom |
| fontSizeIncrease | editor | characters | 增大字号、字符格式、font size increase、custom |
| caseLower | editor | characters | 小写、字符格式、case lower、case-lower |
| caseUpper | editor | characters | 大写、字符格式、case upper、case-upper |
| caseSensitive | editor | characters | 区分大小写、字符格式、case sensitive、case-sensitive |
| fontLibrary | editor | characters | 字体库、字符格式、font library、library |
| fontScript | editor | characters | 字体作用范围、中文与西文、字符格式、font script、custom |
| fontUnavailable | editor | characters | 字体不可用、字符格式、font unavailable、circle-alert |
| type | editor | headings | 文字、标题与文本、type、type |
| heading | editor | headings | 一级标题、标题与文本、heading、heading-1 |
| heading2 | editor | headings | 二级标题、标题与文本、heading2、heading-2 |
| heading3 | editor | headings | 三级标题、标题与文本、heading3、heading-3 |
| heading4 | editor | headings | 四级标题、标题与文本、heading4、heading-4 |
| heading5 | editor | headings | 五级标题、标题与文本、heading5、heading-5 |
| heading6 | editor | headings | 六级标题、标题与文本、heading6、heading-6 |
| documentOutline | editor | headings | 大纲、标题与文本、document outline、custom |
| textQuote | editor | headings | 引用、标题与文本、text quote、text-quote |
| textSearch | editor | headings | 查找文本、标题与文本、text search、text-search |
| spellCheck | editor | headings | 拼写检查、标题与文本、spell check、spell-check |
| spellCheck2 | editor | headings | 语法检查、标题与文本、spell check2、spell-check-2 |
| alignStart | editor | paragraph | 左对齐、段落与列表、align start、align-left |
| alignCenter | editor | paragraph | 居中对齐、段落与列表、align center、align-center |
| alignEnd | editor | paragraph | 右对齐、段落与列表、align end、align-right |
| alignJustify | editor | paragraph | 两端对齐、段落与列表、align justify、align-justify |
| alignDistribute | editor | paragraph | 分散对齐、段落与列表、align distribute、custom |
| indentDecrease | editor | paragraph | 减少缩进、段落与列表、indent decrease、indent-decrease |
| indentIncrease | editor | paragraph | 增加缩进、段落与列表、indent increase、indent-increase |
| listBullet | editor | paragraph | 项目符号、段落与列表、list bullet、list |
| listNumbered | editor | paragraph | 编号列表、段落与列表、list numbered、list-ordered |
| listTask | editor | paragraph | 任务列表、段落与列表、list task、list-checks |
| listTodo | editor | paragraph | 待办列表、段落与列表、list todo、list-todo |
| listTree | editor | paragraph | 多级列表、段落与列表、list tree、list-tree |
| lineSpacing | editor | paragraph | 行距、段落与列表、line spacing、custom |
| lineNumbers | editor | paragraph | 行号、段落与列表、line numbers、custom |
| paragraph | editor | paragraph | 段落标记、段落与列表、paragraph、pilcrow |
| paragraphSettings | editor | paragraph | 段落设置、段落与列表、paragraph settings、sliders-horizontal |
| textDirectionLtr | editor | paragraph | 从左向右、文字方向、段落与列表、text direction ltr、custom |
| textDirectionRtl | editor | paragraph | 从右向左、文字方向、段落与列表、text direction rtl、custom |
| textDirectionVertical | editor | paragraph | 竖排文字、文字方向、竖排、段落与列表、text direction vertical、custom |
| textWrap | editor | paragraph | 自动换行、段落与列表、text wrap、text-wrap |
| wrapText | editor | paragraph | 折行、段落与列表、wrap text、wrap-text |
| insert | editor | insert | 插入内容、插入与内容控件、insert、circle-plus |
| textBox | editor | insert | 文本框、插入与内容控件、text box、text-select |
| textBoxVertical | editor | insert | 竖向文本框、竖排文本框、插入与内容控件、text box vertical、custom |
| textCursor | editor | insert | 文本光标、插入与内容控件、text cursor、text-cursor |
| textCursorInput | editor | insert | 文本输入、插入与内容控件、text cursor input、text-cursor-input |
| blockContentControl | editor | insert | 块内容控件、插入与内容控件、block content control、text-select |
| contentControlComboBox | editor | insert | 可编辑组合框、插入与内容控件、content control combo box、text-cursor-input |
| contentControlDropDown | editor | insert | 下拉选项、插入与内容控件、content control drop down、list-filter |
| checkbox | editor | insert | 复选框、插入与内容控件、checkbox、square-check-big |
| captions | editor | insert | 题注、插入与内容控件、captions、captions |
| fillForm | editor | insert | 填写模式、插入与内容控件、fill form、clipboard-pen-line |
| tableOfContents | editor | insert | 目录、插入与内容控件、table of contents、table-of-contents |
| figureCaption | editor | insert | 题注、插入与内容控件、figure caption、custom |
| crossReference | editor | insert | 交叉引用、插入与内容控件、cross reference、file-symlink |
| shapes | editor | insert | 形状、插入与内容控件、shapes、shapes |
| pencilRuler | editor | insert | 绘图工具、插入与内容控件、pencil ruler、pencil-ruler |
| whiteboard | editor | insert | 白板、插入与内容控件、whiteboard、custom |
| textDiagram | editor | insert | 文本绘图、插入与内容控件、text diagram、custom |
| mindMap | editor | insert | 思维导图、插入与内容控件、mind map、custom |
| animation | editor | insert | 动画、插入与内容控件、animation、custom |
| animationEntrance | editor | insert | 进入动画、插入与内容控件、animation entrance、custom |
| animationEmphasis | editor | insert | 强调动画、插入与内容控件、animation emphasis、custom |
| animationExit | editor | insert | 退出动画、插入与内容控件、animation exit、custom |
| slideTransition | editor | insert | 幻灯片切换、插入与内容控件、slide transition、custom |
| freehand | editor | insert | 自由曲线、插入与内容控件、freehand、custom |
| editPoints | editor | insert | 编辑顶点、插入与内容控件、edit points、custom |
| signature | editor | insert | 签名、插入与内容控件、signature、signature |
| omega | editor | insert | 特殊符号、插入与内容控件、omega、omega |
| sigma | editor | insert | 公式、插入与内容控件、sigma、sigma |
| superscriptSquare | editor | insert | 平方、插入与内容控件、superscript square、square-function |
| horizontalRule | editor | insert | 分隔线、插入与内容控件、horizontal rule、separator-horizontal |
| pageBreak | editor | insert | 分页符、插入与内容控件、page break、custom |
| sectionBreak | editor | insert | 分节符、插入与内容控件、section break、custom |
| footnote | editor | insert | 脚注、插入与内容控件、footnote、custom |
| endnote | editor | insert | 尾注、插入与内容控件、endnote、custom |
| notebookPen | editor | insert | 编辑注释、插入与内容控件、notebook pen、notebook-pen |
| bookOpen | editor | insert | 阅读、插入与内容控件、book open、book-open |
| notebook | editor | insert | 笔记本、插入与内容控件、notebook、notebook |
| table | editor | table-structure | 表格、表格 · 结构、table、table |
| tableProperties | editor | table-structure | 表格属性、表格 · 结构、table properties、table-properties、tableLayoutGroup |
| tableInsertColumnLeft | editor | table-structure | 左侧插入列、表格 · 结构、table insert column left、custom |
| tableInsertColumnRight | editor | table-structure | 右侧插入列、表格 · 结构、table insert column right、custom |
| tableInsertRowAbove | editor | table-structure | 上方插入行、表格 · 结构、table insert row above、custom |
| tableInsertRowBelow | editor | table-structure | 下方插入行、表格 · 结构、table insert row below、custom |
| tableDeleteColumn | editor | table-structure | 删除列、表格 · 结构、table delete column、custom |
| tableDeleteRow | editor | table-structure | 删除行、表格 · 结构、table delete row、custom |
| tableMergeCells | editor | table-structure | 合并单元格、表格 · 结构、table merge cells、table-cells-merge |
| tableSplitCell | editor | table-structure | 拆分单元格、表格 · 结构、table split cell、table-cells-split |
| tableSelectCell | editor | table-structure | 选择单元格、表格 · 结构、table select cell、custom、tableSelectGroup |
| tableSelectRow | editor | table-structure | 选择行、表格 · 结构、table select row、custom |
| tableSelectColumn | editor | table-structure | 选择列、表格 · 结构、table select column、custom |
| tableBorderAll | editor | table-style | 全部边框、表格 · 边框与排列、table border all、custom |
| tableBorderOutside | editor | table-style | 外侧边框、表格 · 边框与排列、table border outside、custom |
| tableBorderInside | editor | table-style | 内部边框、表格 · 边框与排列、table border inside、custom |
| tableBorderTop | editor | table-style | 上边框、表格 · 边框与排列、table border top、custom |
| tableBorderBottom | editor | table-style | 下边框、表格 · 边框与排列、table border bottom、custom |
| tableBorderLeft | editor | table-style | 左边框、表格 · 边框与排列、table border left、custom |
| tableBorderRight | editor | table-style | 右边框、表格 · 边框与排列、table border right、custom |
| tableBorderDiagonalDown | editor | table-style | 下斜线边框、表格 · 边框与排列、table border diagonal down、custom |
| tableBorderDiagonalUp | editor | table-style | 上斜线边框、表格 · 边框与排列、table border diagonal up、custom |
| tableBorderNone | editor | table-style | 无边框、表格 · 边框与排列、table border none、custom |
| tableAlignTop | editor | table-style | 单元格顶端对齐、表格 · 边框与排列、table align top、custom |
| tableAlignCenter | editor | table-style | 单元格垂直居中、表格 · 边框与排列、table align center、custom、tableVerticalAlign |
| tableAlignBottom | editor | table-style | 单元格底端对齐、表格 · 边框与排列、table align bottom、custom |
| tableAlignGeneral | editor | table-style | 单元格常规对齐、表格 · 边框与排列、table align general、custom |
| tableDistributeRows | editor | table-style | 平均分布行、表格 · 边框与排列、table distribute rows、align-vertical-distribute-center |
| tableDistributeColumns | editor | table-style | 平均分布列、表格 · 边框与排列、table distribute columns、align-horizontal-distribute-center |
| tableRowHeight | editor | table-style | 行高、表格 · 边框与排列、table row height、custom |
| tableStyle | editor | table-style | 表格样式、表格 · 边框与排列、table style、custom |
| tableInsert | editor | table-style | 插入行列、表格 · 边框与排列、table insert、custom |
| tableDelete | editor | table-style | 删除表格内容、表格 · 边框与排列、table delete、custom |
| trackChanges | editor | review | 跟踪修订、修订与批注、track changes、file-pen-line |
| revisionPrevious | editor | review | 上一处修订、修订与批注、revision previous、arrow-up |
| revisionNext | editor | review | 下一处修订、修订与批注、revision next、arrow-down |
| revisionAccept | editor | review | 接受修订、修订与批注、revision accept、check |
| revisionReject | editor | review | 拒绝修订、修订与批注、revision reject、x |
| revisionAcceptAll | editor | review | 接受全部修订、修订与批注、revision accept all、check-check |
| revisionRejectAll | editor | review | 拒绝全部修订、修订与批注、revision reject all、list-x |
| revisionMarkup | editor | review | 所有标记、修订与批注、revision markup、file-diff |
| revisionSimpleMarkup | editor | review | 简单标记、修订与批注、revision simple markup、custom |
| revisionFinal | editor | review | 最终状态、修订与批注、revision final、file-check |
| revisionOriginal | editor | review | 原始状态、修订与批注、revision original、file-text |
| messageSquarePlus | editor | review | 新建批注、修订与批注、message square plus、message-square-plus |
| commentPrevious | editor | review | 上一条批注、修订与批注、comment previous、arrow-up |
| commentNext | editor | review | 下一条批注、修订与批注、comment next、arrow-down |
| messageSquareText | editor | review | 批注内容、修订与批注、message square text、message-square-text |
| messageSquareMore | editor | review | 更多批注、修订与批注、message square more、message-square-more |
| messageSquareWarning | editor | review | 批注提醒、修订与批注、message square warning、message-square-warning |
| ruler | editor | page | 标尺、页面与对象、ruler、ruler |
| crop | editor | page | 裁剪、页面与对象、crop、crop |
| rotateCcw | editor | page | 逆时针旋转、页面与对象、rotate ccw、rotate-ccw |
| rotateCw | editor | page | 顺时针旋转、页面与对象、rotate cw、rotate-cw |
| flipHorizontal | editor | page | 水平翻转、页面与对象、flip horizontal、flip-horizontal-2 |
| flipVertical | editor | page | 垂直翻转、页面与对象、flip vertical、flip-vertical-2 |
| alignStartVertical | editor | page | 对象左对齐、页面与对象、align start vertical、align-start-vertical |
| alignCenterVertical | editor | page | 对象水平居中、页面与对象、align center vertical、align-center-vertical |
| alignEndVertical | editor | page | 对象右对齐、页面与对象、align end vertical、align-end-vertical |
| alignStartHorizontal | editor | page | 对象顶对齐、页面与对象、align start horizontal、align-start-horizontal |
| alignCenterHorizontal | editor | page | 对象垂直居中、页面与对象、align center horizontal、align-center-horizontal |
| alignEndHorizontal | editor | page | 对象底对齐、页面与对象、align end horizontal、align-end-horizontal |
| designTheme | editor | presentation | 设计主题、主题、模板、演示、design theme、custom |
| colorScheme | editor | presentation | 配色方案、主题颜色、配色、演示、color scheme、palette |
| backgroundStyle | editor | presentation | 背景样式、背景、演示、background style、wallpaper |
| slideSize | editor | presentation | 幻灯片大小、页面比例、宽屏、演示、slide size、proportions |
| slideSorter | editor | presentation | 幻灯片浏览、缩略图视图、演示、slide sorter、gallery-thumbnails |
| notesPage | editor | presentation | 备注页、演讲者备注、演示、notes page、notebook-text |
| gridlines | editor | presentation | 网格线、网格、演示、gridlines、grid-3x3 |
| guides | editor | presentation | 参考线、辅助线、演示、guides、custom |
| presenterView | editor | presentation | 演讲者视图、放映、演示、presenter view、presentation |
| laserPointer | editor | presentation | 激光笔、指示、演示、laser pointer、custom |
| inkPen | editor | presentation | 画笔、墨迹、标注、演示、ink pen、pen-line |
| inkHighlighter | editor | presentation | 荧光笔、墨迹、标注、演示、ink highlighter、highlighter |
| eraser | editor | presentation | 橡皮擦、擦除、演示、eraser、eraser |
| exportFile | editor | presentation | 导出、导出为 PDF、导出为图片、演示、export file、file-output |
| shapeStyles | editor | object-tools | 形状样式、对象工具、shape styles、swatch-book |
| shapeEffects | editor | object-tools | 形状效果、对象工具、shape effects、custom |
| changeShape | editor | object-tools | 更改形状、对象工具、change shape、replace |
| gradientFill | editor | object-tools | 渐变填充、对象工具、gradient fill、custom |
| lineDash | editor | object-tools | 线条样式、对象工具、line dash、custom |
| lineWeight | editor | object-tools | 线条粗细、对象工具、line weight、custom |
| replaceImage | editor | object-tools | 替换图片、对象工具、replace image、custom |
| resetImage | editor | object-tools | 重设图片、对象工具、reset image、custom |
| cropToShape | editor | object-tools | 裁剪为形状、对象工具、crop to shape、custom |
| pictureStyles | editor | object-tools | 图片样式、对象工具、picture styles、custom |
| pictureEffects | editor | object-tools | 图片效果、对象工具、picture effects、custom |
| brightness | editor | object-tools | 亮度、对象工具、brightness、sun-medium |
| contrast | editor | object-tools | 对比度、对象工具、contrast、contrast |
| recolor | editor | object-tools | 重新着色、对象工具、recolor、droplets |
| transparency | editor | object-tools | 透明度、对象工具、transparency、custom |
| compressImage | editor | object-tools | 压缩图片、对象工具、compress image、custom |
| wordArtStyles | editor | object-tools | 艺术字样式、对象工具、word art styles、type-outline |
| textEffects | editor | object-tools | 文本效果、对象工具、text effects、custom |
| characterSpacing | editor | object-tools | 字符间距、对象工具、character spacing、custom |
| textAutoFit | editor | object-tools | 自动调整、根据文字调整形状大小、缩排文字、对象工具、text auto fit、custom |
| tableCellMargins | editor | object-tools | 单元格边距、对象工具、table cell margins、custom |
| chartElements | editor | object-tools | 图表元素、对象工具、chart elements、custom |
| chartQuickLayout | editor | object-tools | 快速布局、对象工具、chart quick layout、layout-template |
| chartColors | editor | object-tools | 更改颜色、对象工具、chart colors、custom |
| chartSwitchRowColumn | editor | object-tools | 切换行列、对象工具、chart switch row column、custom |
| mindTopic | editor | mind-map | 同级主题、思维导图、mind topic、custom |
| mindSubtopic | editor | mind-map | 子主题、思维导图、mind subtopic、custom |
| mindParentTopic | editor | mind-map | 父主题、思维导图、mind parent topic、custom |
| mindFloatingTopic | editor | mind-map | 自由主题、思维导图、mind floating topic、custom |
| mindRelation | editor | mind-map | 联系、思维导图、mind relation、custom |
| mindSummary | editor | mind-map | 概要、思维导图、mind summary、custom |
| mindBoundary | editor | mind-map | 外框、思维导图、mind boundary、custom |
| mindLayout | editor | mind-map | 导图结构、思维导图、mind layout、custom |
| mindStyle | editor | mind-map | 主题样式、思维导图、mind style、custom |
| marqueeSelect | editor | mind-map | 框选、思维导图、marquee select、custom |
| mindExpandBranch | editor | mind-map | 展开分支、思维导图、mind expand branch、custom |
| mindCollapseBranch | editor | mind-map | 折叠分支、思维导图、mind collapse branch、custom |

## 尺寸

`size` 支持 12、16、20、24，默认 16，单位为像素。图标用于按钮时，尺寸应与控件协调。

### 示例：icon/sizes

文件：`sizes.vue`

```vue
<script setup lang="ts">
import { quireKitEditorIconData } from '@quirekit/ui';
import { QuireIcon } from '@quirekit/ui/vue';
const sizes = [12, 16, 20, 24] as const;
</script>
<template>
  <div class="flex flex-wrap items-end gap-qk-group p-qk-surface" data-icon-size-specimen>
    <div v-for="size in sizes" :key="size" class="grid justify-items-center gap-qk-inline">
      <QuireIcon :data="quireKitEditorIconData.alignCenter" :size="size" /><code>{{ size }}px</code>
    </div>
  </div>
</template>
```

## 编辑器图标

16px 行呈现实际 Toolbar，20px、24px 行按相同顺序展示图标自然尺寸，便于比较字号、文字格式、颜色和段落操作。点击工具栏可修改下方文字，强调颜色与清除状态在三行同步。

`textColor` 表示文字颜色，`fillColor` 的油漆桶表示背景填充，`textHighlight` 的笔形表示标记高亮。示例分别改变文字、浅色背景和文字上的高亮标记，三者可以独立清除；底部「清除所有颜色」同步控制三项。`tableCellFill` 仍可作为 `fillColor` 的别名引用同一个桶形图标。

### 示例：icon/editor

文件：`editor.vue`

```vue
<script setup lang="ts">
import { computed, ref } from "vue";
import { quireIconRegistry } from "@quirekit/ui";
import type { QuireKitCheckboxState, QuireKitToolbarEntry, QuireKitToolbarExecuteEvent } from "@quirekit/ui";
import { QuireCheckbox, QuireColorPicker, QuireIcon, QuireIconProvider, QuireToolbar } from "@quirekit/ui/vue";

const color = ref("#3E63DD");
const textEmpty = ref(false);
const fillEmpty = ref(false);
const highlightEmpty = ref(false);
const cleared = computed<QuireKitCheckboxState>(() => textEmpty.value === fillEmpty.value && fillEmpty.value === highlightEmpty.value
  ? textEmpty.value
  : "indeterminate");
const fontSize = ref(16);
const bold = ref(false);
const italic = ref(false);
const underline = ref(false);
const lineSpacing = ref(1.5);
const alignment = ref<"start" | "center" | "end">("start");
const groups = computed<readonly QuireKitToolbarEntry[]>(() => [
  { value: "size", label: "字号", kind: "group", children: [
    { value: "increase", label: "增大字号", icon: "fontSizeIncrease", disabled: fontSize.value >= 24 },
    { value: "decrease", label: "减小字号", icon: "fontSizeDecrease", disabled: fontSize.value <= 12 }
  ] },
  { value: "text", label: "文字", kind: "group", children: [
    { value: "bold", label: "加粗", icon: "bold", kind: "toggle", pressed: bold.value },
    { value: "italic", label: "斜体", icon: "italic", kind: "toggle", pressed: italic.value },
    { value: "underline", label: "下划线", icon: "underline", kind: "toggle", pressed: underline.value },
    { value: "color", label: textEmpty.value ? "恢复字体颜色" : "清除字体颜色", icon: "textColor", iconAccentColor: color.value, iconEmpty: textEmpty.value },
    { value: "fill", label: fillEmpty.value ? "恢复文字背景色" : "清除文字背景色", icon: "fillColor", iconAccentColor: color.value, iconEmpty: fillEmpty.value },
    { value: "highlight", label: highlightEmpty.value ? "恢复高亮颜色" : "清除高亮颜色", icon: "textHighlight", iconAccentColor: color.value, iconEmpty: highlightEmpty.value }
  ] },
  { value: "paragraph", label: "段落", kind: "group", children: [
    { value: "spacing", label: "行距", tooltip: `行距 ${lineSpacing.value} 倍`, icon: "lineSpacing" },
    ...(["start", "center", "end"] as const).map((value, index) => ({
      value, label: ["左对齐", "居中", "右对齐"][index]!, icon: ["alignStart", "alignCenter", "alignEnd"][index]!,
      kind: "toggle" as const, pressed: alignment.value === value
    }))
  ] }
]);
const items = computed(() => groups.value.flatMap((group, index) => index === 0
  ? [group]
  : [{ value: `separator-${index}`, label: "", kind: "separator" as const }, group]));

/** @param event - Formatting intent shared by the toolbar and all icon specimens. */
function execute(event: QuireKitToolbarExecuteEvent): void {
  if (event.value === "increase") fontSize.value = Math.min(24, fontSize.value + 2);
  if (event.value === "decrease") fontSize.value = Math.max(12, fontSize.value - 2);
  if (event.value === "bold") bold.value = event.pressed === true;
  if (event.value === "italic") italic.value = event.pressed === true;
  if (event.value === "underline") underline.value = event.pressed === true;
  if (event.value === "color") textEmpty.value = !textEmpty.value;
  if (event.value === "fill") fillEmpty.value = !fillEmpty.value;
  if (event.value === "highlight") highlightEmpty.value = !highlightEmpty.value;
  if (event.value === "spacing") lineSpacing.value = lineSpacing.value === 2 ? 1 : lineSpacing.value + 0.5;
  if (event.value === "start" || event.value === "center" || event.value === "end") alignment.value = event.value;
}

/** @param empty - Whether the shared color control clears all three formatting layers. */
function clearColors(empty: boolean): void {
  textEmpty.value = empty;
  fillEmpty.value = empty;
  highlightEmpty.value = empty;
}
</script>

<template>
  <QuireIconProvider :registry="quireIconRegistry">
    <div class="grid min-w-0 gap-qk-group p-qk-surface" data-icon-editor>
      <div class="grid min-w-0 grid-cols-[3rem_minmax(0,1fr)] items-center gap-qk-inline">
        <span class="text-qk-helper text-qk-text-primary">16 px</span>
        <QuireToolbar label="编辑器图标与格式" variant="elevated" align="start" :items="items" @execute="execute" />
      </div>
      <div v-for="size in [20, 24] as const" :key="size"
        class="grid min-w-0 grid-cols-[3rem_minmax(0,1fr)] items-center gap-qk-inline">
        <span class="text-qk-helper text-qk-text-secondary">{{ size }} px</span>
        <div class="flex flex-wrap items-center gap-qk-group">
          <div v-for="group in groups" :key="group.value" class="flex items-center gap-qk-inline-tight">
            <span v-for="item in group.children" :key="item.value" class="inline-flex size-7 items-center justify-center">
              <QuireIcon :name="item.icon" :size="size" :label="item.label"
                :accent-color="item.iconAccentColor" :empty="item.iconEmpty" />
            </span>
          </div>
        </div>
      </div>
      <div class="flex flex-wrap items-center gap-qk-group text-qk-helper text-qk-text-secondary">
        <span class="inline-flex items-center gap-qk-inline">
          强调颜色
          <QuireColorPicker v-model="color" :reset-active="cleared === true" label="选择图标强调颜色"
            @update:reset-active="clearColors" />
        </span>
        <QuireCheckbox :checked="cleared" label="清除所有颜色" @update:checked="clearColors($event === true)" />
        <output>{{ fontSize }} px · {{ lineSpacing }} 倍行距</output>
      </div>
      <p class="m-0 rounded-qk-control bg-qk-surface-subtle p-qk-group"
        data-icon-editor-preview
        :style="{ fontSize: `${fontSize}px`, fontWeight: bold ? 700 : 400, fontStyle: italic ? 'italic' : 'normal',
          textDecoration: underline ? 'underline' : 'none', lineHeight: lineSpacing, textAlign: alignment,
          color: textEmpty ? undefined : color,
          backgroundColor: fillEmpty ? undefined : `color-mix(in srgb, ${color} 12%, transparent)` }">
        <mark data-icon-editor-highlight
          :style="{ color: 'inherit', backgroundColor: highlightEmpty ? 'transparent' : `color-mix(in srgb, ${color} 30%, transparent)` }">
          清晰的图形，让每一次编辑都更自然。
        </mark>
      </p>
    </div>
  </QuireIconProvider>
</template>
```

## 颜色与状态

图标继承所在区域的文字颜色。支持强调层的图标可以使用 `accentColor` 指定局部颜色；`empty` 隐藏颜色强调层，保留主体轮廓，文字颜色、背景填充和高亮图标以底部中性虚线色条表示无颜色，不遮挡主体。

### 示例：icon/colors

文件：`colors.vue`

```vue
<script setup lang="ts">
import { quireKitEditorIconData } from '@quirekit/ui';
import { QuireIcon } from '@quirekit/ui/vue';
</script>
<template>
  <div class="grid gap-qk-surface p-qk-surface" data-icon-color-specimen>
    <div class="flex flex-wrap gap-qk-group">
      <span v-for="item in [['text-qk-text-primary', '正文'], ['text-qk-action-text', '主题'], ['text-qk-success-foreground', '成功'], ['text-qk-danger-foreground', '危险']]" :key="item[1]" :class="item[0]" class="inline-flex items-center gap-qk-inline">
        <QuireIcon :data="quireKitEditorIconData.alignCenter" :size="24" />{{ item[1] }}
      </span>
    </div>
    <div class="flex flex-wrap gap-qk-group">
      <span class="inline-flex items-center gap-qk-inline"><QuireIcon :data="quireKitEditorIconData.fillColor" :size="24" accent-color="var(--qk-color-success-solid)" />有填充</span>
      <span class="inline-flex items-center gap-qk-inline"><QuireIcon :data="quireKitEditorIconData.fillColor" :size="24" empty />无填充</span>
    </div>
  </div>
</template>
```

## 自定义注册

`defineQuireKitIcon` 定义静态 SVG，`createQuireKitIconRegistry` 组织名称、别名和可选的 `fallback`。SVG 使用 `currentColor` 或 `none`；方向图标通过 `mirrorInRtl` 声明是否随阅读方向镜像。

### 示例：icon/registry

文件：`registry.vue`

```vue
<script setup lang="ts">
import { ref } from 'vue';
import { defineQuireKitIcon, createQuireKitIconRegistry } from '@quirekit/ui';
import { QuireIcon, QuireIconProvider, QuireSwitch } from '@quirekit/ui/vue';
const rtl = ref(false);
const next = defineQuireKitIcon({
  svg: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 5 7 7-7 7" /></svg>',
  source: 'custom', license: 'MIT', mirrorInRtl: true,
});
const registry = createQuireKitIconRegistry({ next }, { aliases: { forward: 'next' }, fallback: 'next' });
</script>
<template>
  <QuireIconProvider :registry="registry">
    <div class="grid gap-qk-surface p-qk-surface">
      <QuireSwitch v-model:checked="rtl" label="从右向左阅读" />
      <div :dir="rtl ? 'rtl' : 'ltr'" class="flex items-center gap-qk-inline"><span>下一项</span><QuireIcon name="forward" /></div>
    </div>
  </QuireIconProvider>
</template>
```

## 与操作组合

由 Button 或 IconButton 响应点击，图标负责说明动作。优先使用语义准确的 Lucide 图标；自绘图标统一使用 24 × 24 网格与 2 单位圆头描边。修订显示模式等复杂含义配可见文字，避免只靠相似图形区分。下例可切换操作状态、填充状态和阅读方向。

### 示例：icon/playground

文件：`playground.vue`

```vue
<script setup lang="ts">
import { ref } from "vue";
import { quireIconRegistry } from "@quirekit/ui";
import {
  QuireButton,
  QuireIcon,
  QuireIconButton,
  QuireIconProvider,
  QuireSeparator
} from "@quirekit/ui/vue";

const direction = ref<"ltr" | "rtl">("ltr");
const active = ref<"bold" | "color" | undefined>();
const fillEnabled = ref(true);
</script>

<template>
  <QuireIconProvider :registry="quireIconRegistry">
    <div class="grid place-items-center p-qk-surface" :dir="direction" data-icon-playground>
      <div class="grid gap-qk-surface">
        <div class="flex flex-wrap items-center gap-qk-inline rounded-qk-overlay border border-qk-border-default bg-qk-surface-page p-qk-inline">
          <QuireIconButton color="neutral" variant="ghost" label="重置图标示例" title="重置图标示例" @click="active = undefined; fillEnabled = true">
            <QuireIcon name="undo" />
          </QuireIconButton>
          <QuireSeparator orientation="vertical" decorative />
          <QuireIconButton
            color="neutral"
            :variant="active === 'bold' ? 'soft' : 'ghost'"
            label="加粗"
            title="加粗"
            :aria-pressed="active === 'bold'"
            @click="active = active === 'bold' ? undefined : 'bold'"
          >
            <QuireIcon name="bold" />
          </QuireIconButton>
          <QuireButton
            color="neutral"
            :variant="active === 'color' ? 'soft' : 'ghost'"
            :aria-pressed="active === 'color'"
            @click="active = active === 'color' ? undefined : 'color'"
          >
            <template #leading><QuireIcon name="textColor" /></template>
            字体颜色
            <template #trailing><QuireIcon name="chevronDown" :size="12" /></template>
          </QuireButton>
          <QuireIconButton
            color="neutral"
            variant="ghost"
            :label="fillEnabled ? '清除背景填充' : '恢复背景填充'"
            :title="fillEnabled ? '清除背景填充' : '恢复背景填充'"
            @click="fillEnabled = !fillEnabled"
          >
            <QuireIcon
              name="fillColor"
              :accent-color="fillEnabled ? 'var(--qk-color-success-solid)' : undefined"
              :empty="!fillEnabled"
            />
          </QuireIconButton>
        </div>
        <div class="flex flex-wrap items-center justify-between gap-qk-surface text-qk-helper text-qk-text-secondary">
          <span>点击图标切换状态</span>
          <QuireButton variant="link" color="primary" @click="direction = direction === 'ltr' ? 'rtl' : 'ltr'">
            {{ direction === "ltr" ? "切换 RTL" : "切换 LTR" }}
          </QuireButton>
        </div>
      </div>
    </div>
  </QuireIconProvider>
</template>
```

## 可访问名称

独立传达信息的图标提供 `label`；按钮内与文字重复的图标保持装饰语义，动作名称放在按钮上。

## API

### QuireIcon

#### Props

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| name | 否 | undefined | Registered product icon name. Ignored when data is supplied directly. |
| data | 否 | undefined | Normalized SVG icon data rendered directly without a registry lookup. |
| size | 否 | 16 | Optical icon box size in CSS pixels. |
| label | 否 | undefined | Accessible name for a meaningful standalone icon; omit for decoration. |
| accentColor | 否 | undefined | Optional runtime color applied to the icon's accent geometry. |
| empty | 否 | false | Whether stateful artwork should replace its accent with an empty-state mark. |

**name**

```ts
string | undefined
```

```ts
undefined | string
```

**data**

```ts
QuireKitIconData | undefined
```

```ts
undefined | {
  /** Normalized trusted SVG markup rendered by framework adapters. */
  svg: string;
  /** Intrinsic SVG coordinate system retained for audits and previews. */
  viewBox: string;
  /** Source family used to audit licensing and visual consistency. */
  source: "custom" | "lucide" | "tabler";
  /** Upstream or product license identifier for the glyph. */
  license: string;
  /** Whether directional artwork should mirror in right-to-left layouts. */
  mirrorInRtl: boolean;
  /** Centered optical scale used to normalize visually oversized artwork. */
  opticalScale: number;
  /** Number of visible SVG geometry elements in the normalized glyph. */
  complexity: number;
}
```

**size**

```ts
QuireKitIconSize | undefined
```

```ts
undefined | 12 | 24 | 16 | 20
```

**label**

```ts
string | undefined
```

```ts
undefined | string
```

**accentColor**

```ts
string | undefined
```

```ts
undefined | string
```

**empty**

```ts
boolean | undefined
```

#### Events

无。

#### Slots

无。

#### 公开实例成员

无。

#### 相关类型

```ts
type QuireKitIconData = {
  /** Normalized trusted SVG markup rendered by framework adapters. */
  svg: string;
  /** Intrinsic SVG coordinate system retained for audits and previews. */
  viewBox: string;
  /** Source family used to audit licensing and visual consistency. */
  source: "custom" | "lucide" | "tabler";
  /** Upstream or product license identifier for the glyph. */
  license: string;
  /** Whether directional artwork should mirror in right-to-left layouts. */
  mirrorInRtl: boolean;
  /** Centered optical scale used to normalize visually oversized artwork. */
  opticalScale: number;
  /** Number of visible SVG geometry elements in the normalized glyph. */
  complexity: number;
};
```

```ts
type QuireKitIconSource = "custom" | "lucide" | "tabler";
```

### QuireIconProvider

#### Props

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| registry | 是 | — | Product-owned icon registry available to descendant QuireIcon instances. |

**registry**

```ts
QuireKitIconRegistry<string>
```

#### Events

无。

#### Slots

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| default | 否 | — |  |

**default**

```ts
{}
```

#### 公开实例成员

无。
