You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dialog-react

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dialog-react

toast confirm prompt confirmAuto

1.1.3
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Toast toast

Confirm toast

ConfirmAuto toast

Prompt toast

Notification toast

How to use

  • install

npm install --save-dev dialog-react style-loader css-loader

  • webpack.config.js
// add loader
{
	test: /\.css$/,
	loader: "style-loader!css-loader"
}
  • import

import {Toast, Confirm, Prompt, ConfirmAuto, Notificaion} from "dialog-react"

many or one more

  • use
<Toast
	content="测试用例"
	show={this.state.showDialog}
	long={1}
	close={() => this.setState({showDialog: false})} />
<Confirm
	content="测试用例"
	confirm="好的"
	show={this.state.showDialog}
	close={() => this.setState({showDialog: false})} />
<Prompt
	content="测试用例"
	confirm="好的"
	other="重新输入"
	show={this.state.showDialog}
	fun={() => this.setState({showDialog: false})}
	close={() => this.setState({showDialog: false})} />
<ConfirmAuto
	content="测试用例"
	show={this.state.showDialog}
	close={() => this.setState({showDialog: false})} />
<Notification
	content={this.state.content}
	fun={_funClick}
	funName="下一条"
	show={this.state.showDialog}
	close={() => this.setState({showDialog: false})}/>

Keywords

dialog

FAQs

Package last updated on 15 Sep 2017

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.