跳到主要内容

Button

示例

Default

Large

Small

代码

import Button from ".";
import '../demo.css'
export default function ButtonDemo () {
return (
<div className="demo-container">
<h3>Default</h3>
<div className="demo-row">
<Button>hello world</Button>
<Button disabled>hello world</Button>
<Button type="primary">hello world</Button>
<Button type="primary" disabled>hello world</Button>
</div>
<h3>Large</h3>
<div className="demo-row">
<Button size="large">hello world</Button>
<Button size="large" disabled>hello world</Button>
<Button size="large" type="primary">hello world</Button>
<Button size="large" type="primary" disabled>hello world</Button>
</div>
<h3>Small</h3>
<div className="demo-row">
<Button size="small">hello world</Button>
<Button size="small" disabled>hello world</Button>
<Button size="small" type="primary">hello world</Button>
<Button size="small" type="primary" disabled>hello world</Button>
</div>
</div>
)
}