Close button

A generic close button for dismissing content like modals and alerts.

Bootstrap docs: https://getbootstrap.com/docs/5.3/components/close-button/

Close button

Syntax

$Bootstrap = new renderabootstrap5component();
echo $Bootstrap->closebutton($aOptions)
Returns: string *

Parameters: 1

Parameter #0 [ <required> array $aOptions ] 
array of options
  • class {string} css classes; default: “btn-close”

Flags

  • disabled {bool} default: false

Example

PHP snippet

$Bootstrap->closebutton([
]);

Generated html output

<button class="btn-close">
</button>