{{- /* Usage: js-dismiss "ComponentName" */ -}}

{{- $name := .Get 0 -}}

Dismissal can be achieved with the `data` attribute on a button **within the {{ $name }}** as demonstrated below:

```html
<button type="button" class="btn-close" data-coreui-dismiss="{{ $name }}" aria-label="Close"></button>
```

or on a button **outside the {{ $name }}** using the `data-coreui-target` as demonstrated below:

```html
<button type="button" class="btn-close" data-coreui-dismiss="{{ $name }}" data-coreui-target="#my-{{ $name }}" aria-label="Close"></button>
```
