> For the complete documentation index, see [llms.txt](https://docs.trydrupal.com/radix/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trydrupal.com/radix/components/close-button.md).

# Close button

[**Bootstrap docs**](https://getbootstrap.com/docs/5.3/components/close-button/)

### Properties:

* Size: `size` (string) - Bootstrap button size class (default: `''`)
* Disabled state: `disabled` (boolean) - Disabled button (default: `false`)

### Usage

An actual use case is within the Toasts component like so:

```twig
{% include 'radix:close-button' with {
  size: 'btn-sm',
  disabled: false,
  close_button_attributes: create_attribute()
    .setAttribute('data-bs-dismiss', 'modal')
} %}
```
