ant-design/components/button/demo/disabled.md

22 lines
325 B
Markdown
Raw Normal View History

2015-05-16 17:12:22 +08:00
# 失效
- description: 灰色的
---
````html
2015-05-18 17:33:42 +08:00
<div id="example"></div>
````
````js
/** @jsx React.DOM */
var Button = React.createClass({
render: function() {
return <button disabled>{this.props.children}</button>;
}
});
React.render(<Button>失效的按钮</Button>, document.getElementById('example'));
2015-05-16 17:12:22 +08:00
````