![](/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.