Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hi-ui/button

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hi-ui/button

A sub-package for @hi-ui/hiui.

  • 4.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
42
increased by35.48%
Maintainers
2
Weekly downloads
 
Created
Source

Button 按钮

引导用户去触发操作的区域

何时使用

用户需要执行有具体含义的动作、命令

连接页面之间、页面和弹窗、页面和浮层面板的跳转

使用示例

Props

参数说明类型可选值默认值
type设置按钮类型string'primary' | 'line' | 'success' | 'danger' | 'default''default'
appearance设置按钮外观string'link' | 'button''button'
disabled设置按钮是否禁用booleantrue | falsefalse
size设置按钮尺寸string'lg' | 'md' | 'sm''default'
icon设置按钮图标string详见  <Icon/>  组件 ︎-
href设置按钮链接,设置后将用 a 标签渲染按钮string-
target同 a 标签的 target 属性,仅在设置 href 后有效string︎'_self' | '_blank' | '_parent' | '_top'-
loading是否显示 loadingboolean︎-false

Events

名称说明类型参数返回值
onClick点击按钮时的回调(event: MouseEvent) => voidevent: 鼠标事件对象-

CHANGELOG

参数变更类型变更内容解决的问题
typeupdate删除'line',新增'secondary'
sizeupdate变更为 'sm''md'
appearanceupdate删除'button',新增'filled'、'line'
shapefeature增加形状 'round''square'

FAQs

Package last updated on 12 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc