Socket
Book a DemoInstallSign in
Socket

@icedesign/balloon-confirm

Package Overview
Dependencies
Maintainers
12
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@icedesign/balloon-confirm

ICE 气泡确认框

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
12
-20%
Maintainers
12
Weekly downloads
 
Created
Source

title: BalloonConfirm category: Components chinese: 气泡确认框

ICE 气泡确认框

安装和升级

npm install @icedesign/balloon-confirm

开发指南

气泡确认框

何时使用

  • 当目标操作需要进一步确认时,弹出确认框,询问用户。
  • 该组件作为一个轻量级的确认交互,不宜在内部放过多元素。如需较多定制,可直接使用Balloon组件。

使用注意

  • 因为内部使用Balloon组件,所以对于子元素是自定义React Component的情况,需要主动传递onMouseEnteronMouseLeaveonClick事件。
  • 更多props可参考Balloon组件,其中triggerType默认为click

API

气泡确认框

参数名说明必填类型默认值备注
className样式名string-
title确认框描述string-
confirmText确认按钮文本string'确认'
cancelText取消按钮文本string'取消'
onConfirm点击确认的回调function(e)-
onCanel点击取消的回调function(e)-
Icon自定义气泡图标ReactNode<Icon type="warning" style={{ color: '#FFA003' }} />

Keywords

ice

FAQs

Package last updated on 07 Nov 2019

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