@alicd/crui-icon-button

0.0.8 • Public • Published

category: Components type: UI Views component: Basic chinese: 图标按钮 english: IconButton

带图标的 Button 组件。支持所有 Button 组件已有的能力。

API

成员 说明 类型 默认值
iconType 指定显示哪种图标 string N/A
size 按钮的尺寸。可选值: "small", "medium", "large" "small""large""medium" "medium"
prefix 组件样式的品牌前缀 string "next-"
onClick 点击按钮的回调。参数: e: Event Event Object (e: Event) => void 默认不执行任何操作
className 添加组件的自定义 class string N/A
style 自定义按钮的 CSS 样式 object N/A
shape 按钮的形态。可选值: "ghost", "text", "warning" "ghost""text""warning" N/A
type 按钮的类型。可选值: "primary", "secondary", "normal", "dark", "light" "primary""secondary""normal""dark""light" "normal"
htmlType 设置 button 标签的原生 HTML type string "button"
component 设置标签类型。可选值: "button", "span", "a", "div" "button""span""a""div" "button"
loading 设置按钮的载入状态 boolean "false"

Readme

Keywords

none

Package Sidebar

Install

npm i @alicd/crui-icon-button

Weekly Downloads

1

Version

0.0.8

License

none

Unpacked Size

599 kB

Total Files

25

Last publish

Collaborators

  • snowden_
  • vincent.ljq
  • zhen.hz
  • cismous
  • juntao.wjt
  • xiongqi
  • mingche_286130
  • joshuasui
  • mmpc
  • 0little
  • yf871020
  • zyy7259
  • later_7
  • qijian1990
  • gepik
  • jimmyxuster
  • helloljq
  • rentj1
  • js8zq332
  • xiaobc