![](/img/trans.png)
[英]Unable to reduce the size of the input field (form.control) with floating label in react in using react-bootstrap
[英]Floating label with react-bootstrap
我试图在这个例子中做浮动标签,但使用 react-bootstrap:
我目前的组件:
<FormGroup controlId="email" bsSize="large">
<FloatingLabel ref={this.floatingEmail}>Email</FloatingLabel >
<FormControl
autoFocus
type="email"
value={this.state.email}
onChange={this.handleChange}
/>
</FormGroup>
旧帖子,但如果这不是新人谷歌搜索想要的内容,请看一下这个库:https ://github.com/brennanwilkes/react-bootstrap-floating-label
React bootstrap 5.0 有浮动标签
https://react-bootstrap.github.io/components/forms/#forms-floating-labels
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.