Icon 图标
WebH5
图标。渲染 ruanno-ui 原创 SVG 图标集,描边跟随 currentColor,可通过 size/color 调整。
何时使用
需要语义化图形符号时:按钮前缀、状态提示、空状态、导航项。
何时不使用
需要复杂插画或品牌 logo 时不要用图标集拼凑;图标集中没有的图形应补充到图标数据源后再使用。
Props
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
name | string:'check' | 'close' | 'plus' | 'minus' | 'search' | 'chevron-down' | 'chevron-up' | 'chevron-left' | 'chevron-right' | 'arrow-left' | 'arrow-right' | 'info' | 'warning' | 'error' | 'success' | 'eye' | 'eye-off' | 'calendar' | 'clock' | 'user' | 'home' | 'star' | 'heart' | 'settings' | 'menu' | 'more' | 'trash' | 'edit' | 'download' | 'refresh' | 'lock' | 'loading' | 'device-phone' | 'cart' | 'shopping-bag' | 'tshirt' | 'lipstick' | 'apple' | 'sofa' | 'sport' | 'book' | 'gift' | 'headphone' | 'watch' | 'laptop' | 'coffee' | 'bold' | 'italic' | 'underline' | 'strikethrough' | 'heading' | 'list-ul' | 'list-ol' | 'quote' | 'link' | 'image' | 'code' | 'undo' | 'redo' | 'align-left' | 'align-center' | 'align-right' | 'chart-bar' | 'chart-line' | 'chart-pie' | 'trend-up' | 'trend-down' | 'mail' | 'location' | 'bell' | 'globe' | "(必填)" | 图标名;未知名称时 console.warn 并渲染空 |
size | number | string | 24 | 尺寸,同时作用于宽高;number 视为 px,string 原样输出(如 "1.5em") |
color | string | "currentColor" | 图标颜色,默认继承父级文字颜色 |
示例
全部图标(原创,共 71 枚)
示例加载中…
常用图标
示例加载中…
颜色与尺寸
示例加载中…
搭配按钮使用
示例加载中…
Playground
加载中…
请选择
跨端版本
该组件同时提供 uni-app / uni-app X 实现(H5 / 微信小程序 / App),API 可能略有差异,见 uni-app 端 Icon 文档(含手机预览)。