Create a close icon that can be combined with different components.
To apply this component, add the data-uk-close attribute to an <a> or <button> element.
This is an example of how this component is used with an alert box from the Alert component.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
This is an example of how this component is used with the Drop component.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
This is an example of how this component is used with the Modal component.
The Close component automatically sets the appropriate WAI-ARIA roles and properties.
aria-label property, and if an <a> element is used, the button role.The Close component uses the following translation strings. Learn more about translating components.
| Key | Default | Description |
|---|---|---|
label | Close | aria-label attribute. |