有一个类似的问题,但答案不是很清楚,我没有足够的“观点”来评论它。
我读过https://react-bootstrap.github.io/components/buttons/和其他一些文件,但找不到答案。
我使用本文作为我的指南:https://www.pluralsight.com/guides/how-to-position-react-bootstrap-popover
import Popover from 'react-bootstrap/Popover';
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
import Button from 'react-bootstrap/Button';
.
.
.
render() {
const popover = (
<Popover id="popover-basic">
<Popover.Title as="h3">Popover title</Popover.Title>
<Popover.Content>
Popover content <strong>some strong content</strong> Normal content again
</Popover.Content>
</Popover>
);
return (
<div className='toggle container '>
<div className='form-row justify-content-center'>
<div className='col-6'>
<section class='inline-block'>
<span class="badge badge-pill badge-primary ml-2">1</span>
<h3>
Choose System Type:
</h3>
<div id="element1">
<OverlayTrigger trigger="hover" placement="right" overlay={popover}>
<Button variant="outline-primary" circle><i class="fas fa-question"></i></Button>
</OverlayTrigger>
</div>
</section>
</div>
</div>
</div>
我希望我的弹出按钮是一个圆圈,但我找不到关于如何这样做的文档。
有人能显式地帮助我使用?也许还有别的事?例子非常有用。这是一张屏幕截图.
发布于 2022-02-16 21:27:49
您可以将className="rounded-circle"
设置为按钮组件,它将是圆形的。更多关于类似边框类的信息:引导文档
https://stackoverflow.com/questions/65485862
复制相似问题