UNPKG

zent

Version:

一套前端设计语言和基于React的实现

32 lines (29 loc) 626 B
--- order: 1 zh-CN: title: 基础用法 info: 常规提示 success: 成功通知 warn: 警告通知 error: 错误通知 en-US: title: Basic usage info: info success: success warn: warn error: error --- ```jsx import { Notify, Button } from 'zent'; ReactDOM.render( <div> <Button onClick={() => Notify.info('{i18n.info}')}>{i18n.info}</Button> <Button onClick={() => Notify.success('{i18n.success}')}> {i18n.success} </Button> <Button onClick={() => Notify.warn('{i18n.warn}')}>{i18n.warn}</Button> <Button onClick={() => Notify.error('{i18n.error}')}>{i18n.error}</Button> </div>, mountNode ); ```