Close

Create a close icon that can be combined with different components.

Close

Create a close icon that can be combined with different components.

Usage

To apply this component, add the uk-close attribute to an <a> or <button> element.

<button type="button" uk-close></button>

<a href="" uk-close></a>

Large modifier

Add the .uk-close-large class for a larger close button.

<button class="uk-close-large" type="button" uk-close></button>

Close in alerts

This is an example of how this component is used with an alert box from the Alert component.

<div uk-alert>
    <button class="uk-alert-close" type="button" uk-close></button>
</div>

Close in drops

This is an example of how this component is used with the Drop component.

<div uk-drop>
    <button class="uk-drop-close" type="button" uk-close></button>
</div>

Close in modals

This is an example of how this component is used with the Modal component.

<div id="modal" uk-modal>
    <div class="uk-modal-dialog uk-modal-body">
        <button class="uk-modal-close-default" type="button" uk-close></button>
    </div>
</div>