How to change React Bootstrap Modal.Header closeButton icon
P粉563446579
P粉563446579 2023-08-25 18:59:18
0
1
425
<p>I'm using React Bootstrap Modal. I'm trying to change the <code>closeButton</code> icon. But it didn't work. </p> <pre class="brush:php;toolbar:false;"><Modal.Header className='modal-head' closeButton> <Modal.Title>Shopping Cart</Modal.Title> </Modal.Header></pre>
P粉563446579
P粉563446579

reply all(1)
P粉515066518

I don't think the react-bootstrap library itself provides similar functionality. However, you can add an icon to the right alignment of the modal box head and add an onClick action, which can change the open state of the modal box and close it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!