(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{701:function(n,t,a){"use strict";a.r(t),a.d(t,"default",function(){return D});var s=a(23),e=a.n(s),o=a(24),c=a.n(o),p=a(25),i=a.n(p),l=a(26),r=a.n(l),u=a(32),d=a.n(u),m=a(27),h=a.n(m),k=a(28),f=a.n(k),g=a(580),y=a.n(g),v=a(0),w=a.n(v),C=a(111),E=a(82),b=function(){return w.a.createElement(E.q,{text:"basic usage"})},z=function(){return w.a.createElement(E.q,{text:"customize usage",onCopySuccess:"Copied!"},w.a.createElement(E.i,{type:"primary"},"Click!"))};function _(n){return w.a.createElement(n.tag,y()({},n.attributes,{dangerouslySetInnerHTML:{__html:n.html}}))}function N(n){return w.a.createElement(_,{tag:"section",html:n.html,attributes:{className:"zandoc-react-markdown"}})}function B(n){return w.a.createElement(_,{tag:"style",html:n.style})}var x=function(n){function t(){var n,a;e()(this,t);for(var s=arguments.length,o=new Array(s),c=0;cCopyButton\n

Copy button will copy the specified text to the system clipboard when clicked.

\n

Guides

\n\n

Demos

'}),w.a.createElement(x,{title:"Basic usage",id:"Demobasic",src:'import { CopyButton } from \'zent\';\n\nReactDOM.render(<CopyButton text="basic usage" />, mountNode);'},w.a.createElement(b)),w.a.createElement(x,{title:"Customize usage",id:"Democustomize",src:'import { CopyButton, Button } from \'zent\';\n\nReactDOM.render(\n <CopyButton text="customize usage" onCopySuccess="Copied!">\n <Button type="primary">Click!</Button>\n </CopyButton>\n , mountNode);'},w.a.createElement(z)),w.a.createElement(N,{html:'

API

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PropertyDescriptionTypeDefault
textThe next need to be copiedstring\n \n|\n \n() => string
onCopySuccessThe callback function that is triggered when copy successful. If this property is string, it will show in \nNotify.info\n.function \n|\n string\'Copied\'
onCopyErrorThe callback function that is triggered when copy failed. If this property is string, it will show in \nNotify.error\n.function \n|\n string\'Copy failed\'
'}))}}]),t}(v.Component)}}]);