Socket
Book a DemoInstallSign in
Socket

uxcore-alert

Package Overview
Dependencies
Maintainers
7
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uxcore-alert

uxcore-alert component for uxcore.

0.3.11
latest
Source
npmnpm
Version published
Weekly downloads
202
10000%
Maintainers
7
Weekly downloads
 
Created
Source

uxcore-alert Dependency Status devDependency Status

TL;DR

uxcore-alert ui component for react

setup develop environment

$ git clone https://github.com/uxcore/uxcore-alert
$ cd uxcore-alert
$ npm install
$ gulp server

Usage

demo

http://uxcore.github.io/

API

  • toggleShow: 切换 Alert 的显示状态。

Props

配置项类型必填默认值功能/备注
prefixClsstringoptional'kuma-alert'类名前缀,不想使用 kuma 主题时使用
iconPrefixClsstringoptional'kuma-icon'图标类名前缀,不想使用 kuma 主题时使用
classNamestringoptional-额外的类名
typestringoptional'message'警告类型,包括 message', 'error', 'warning', 'success', 'question', 'stop', 'wait'
hasContainerbooloptionalfalse是否包含外层容器
closablebooloptionalfalse是否能够关闭,此项为 true 时,将自动包含外层容器
closeTextstring or react elementoptional-将关闭图标替换成想要的文字
messagestring or react elementrequired-提示文案
descriptionstring or react elementoptional描述文字,将自动包含外层容器
onClosefunctionoptionalnoop在警告关闭时触发,传回 event
sizestringoptional'normal'配置提示框大小,可选large

Keywords

react

FAQs

Package last updated on 28 Nov 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.