![](/img/trans.png)
[英]Form.Control type password in React-Bootstrap always renders an default password that i can't remove
[英]How can I remove the class=“form-control” that comes by default the FormControl component in React-Bootstrap
FormControl是react-bootstrap的組件,默認情況下具有form-control類。 當此輸入位於類“ mygroup”的FormGroup中時,我想刪除此類。
<FormGroup className="mygroup">
<FormControl>
</FormGroup>
您可以設置道具“ bsClass”以覆蓋react-bootstrap應用的默認樣式。 將其設置為空字符串或所需的任何自定義類。
<FormGroup className="mygroup">
<FormControl
bsClass=""
type="text"
placeholder="Enter text"
/>
</FormGroup>
此處有更多詳細信息-https: //5c507d49471426000887a6a7--react-bootstrap.netlify.com/components/forms/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.