跳到主要内容

Input

示例

Default

Small

代码

import Input from '.'

export default function InputDemo() {
return (
<div className='demo-container'>
<h3>Default</h3>
<div className="demo-row">
<Input placeholder='请输入'/>
<Input value={123}/>
<Input disabled value={123}/>

<Input type='number' value={123}/>
<Input type='number' disabled value={123}/>
</div>

<h3>Small</h3>

<div className="demo-row">
<Input size='small' placeholder='请输入'/>
<Input size='small' value={123}/>
<Input size='small' disabled value={123}/>

<Input size='small' type='number' value={123}/>
<Input size='small' type='number' disabled value={123}/>
</div>

</div>
)
}