Skip to content

Icon 图标

语义化的矢量图形。

基础用法

通过 name 属性指定图标名称。

SXO Framework Switcher
🚧
This example is not yet available for .

自定义样式

可以通过 sizecolor 属性自定义图标的大小和颜色。

SXO Framework Switcher
🚧
This example is not yet available for .

API

Props

参数说明类型默认值
name图标名称keyof typeof Icons-
size图标大小string | number'1em'
color图标颜色string'currentColor'
strokeWidth描边宽度number2

图标列表

目前支持的图标包括:Check, Close, Search, Menu, ChevronDown, ChevronRight, Plus, Minus, Info, Warning