Popconfirm

React Bootstrap 5 Popconfirm component

Responsive popconfirm built with the latest Bootstrap 5. Popconfirm is a compact dialog alert. Use it to confirm/cancel a decision or display extra content like an explanation.

Popconfirm basically is a simple alert with confirmation buttons.

Note: Read the API tab to find all available options and advanced customization


Basic example

Basic example of popconfirm usage


Display mode

You can choose between modal and inline to modify display mode.

Modal mode is rendered at the center of the screen and is static, you can't change its position but all other attributes can be applied


Icon example

To apply icon to message use property icon like on example below:


Inline positions

You can choose between different positions

Available positions: top-end; top; top-start; right-start; right; right-end; bottom-end; bottom; bottom -start; left-end; left; left-start;

Popconfirm - API


Import


        import { 
          MDBPopconfirm,
          MDBPopconfirmMessage,
        } from 'mdb-react-ui-kit';
      

Properties

MDBPopconfirm

Name Type Default Description Example
tag String 'div' Defines tag of the MDBPopconfirm wrapper <MDBPopconfirm tag="span">...</MDBPopconfirm>
className String '' Add custom class to MDBPopconfirm <MDBPopconfirm className="class">...</MDBPopconfirm>
btnClassName String '' Add custom class to MDBPopconfirm button. <MDBPopconfirm btnClassName='test' >...</MDBPopconfirm>
btnChildren String '' The text placed in the popconfirm button. <MDBPopconfirm btnChildren='popconfirm' >...</MDBPopconfirm>
modal Boolean false Sets the display mode to modal. <MDBPopconfirm modal >...</MDBPopconfirm>
placement String 'top' Specify position to display popover. <MDBPopconfirm placement='bottom'>...</MDBPopconfirm>
popperTag String 'div' Defines tag of the MDBPopconfirm wrapper <MDBPopconfirm popperTag="span">...</MDBPopconfirm>

MDBPopconfirmMessage

Name Type Default Description Example
tag String 'div' Defines tag of the MDBPopconfirmMessage wrapper <MDBPopconfirmMessage tag="span">...</MDBPopconfirmMessage>
className String '' Add custom class to MDBPopconfirmMessage <MDBPopconfirmMessage className="class">...</MDBPopconfirmMessage>
icon Any - Adds icon to MDBPopconfirmMessage <MDBPopconfirmMessage icon={}>...</MDBPopconfirmMessage>