Socket
Socket
Sign inDemoInstall

@hi-ui/alert

Package Overview
Dependencies
22
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hi-ui/alert

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


Version published
Maintainers
2
Created

Readme

Source

Alert 警告提示

作用于页面的内容区域的提示,非触发类信息

何时使用

警示,内容提示,说明,要求,规则等阅读类信息

显示在页面局部的提示性文案

使用示例

Props

参数说明类型可选值默认值
type警告提示类型string'primary' | 'warning' | 'success' | 'danger''primary'
title警告提示标题string--
content警告提示内容string--
closeable是否可关闭booleantrue | falsefalse
duration自动关闭时间,单位为毫秒number | null-null

Events

名称说明类型参数返回值
onClose关闭事件触发时的回调() => void--

CHANGELOG

参数变更类型变更内容解决的问题
closeIconfeature
showIconfeature

FAQs

Last updated on 12 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc