Preview Updated 2026-05-10

IconPicker

Search and select from the built-in icon set for menu settings, dashboards, and property panels.

Basic Usage

CfIconPicker reads the typed icon list from @chufix-design/icons. The selected value is an IconName.

activity
Demo source
src/App.vue vue
<CfIconPicker v-model="icon" searchable clearable />
src/App.tsx tsx
<CfIconPicker value={icon} searchable clearable onChange={setIcon} />

API

PropTypeDefaultDescription
value / modelValueIconNameCurrent icon name
placeholderstring选择图标Empty placeholder
searchablebooleantrueShow search input
clearablebooleantrueShow clear button
disabledbooleanfalseDisable the control
sizesm / md / lgmdSize

Events: Vue update:modelValue / change(value), React onChange(value).

反馈与讨论

IconPicker · Discussion

0
0 / 600
一键发送
正在加载评论...