Close button
A generic close button for dismissing components like modals and alerts.
Example #
A generic close button can be created using the .btn-close
class. These buttons can be used for dismissing components like modals and alerts. Close buttons can also be disabled by adding the disabled
attribute.
HTML
<!-- Close button -->
<button type="button" class="btn-close" aria-label="Close"></button>
<!-- Disabled close button -->
<button type="button" class="btn-close" disabled aria-label="Close"></button>
Accessibility
Please note, close buttons should have text for screen readers to make them accessible. This can be done with thearia-label
attribute for example.
Help us grow
Our main goal is to make Halfmoon the go-to framework for building websites, dashboards and tools. If you believe in our mission, consider becoming a sponsor and help us grow.
You can email us directly if you have any queries. We are always happy to answer.
Subscribe for updates
We will notify you when the framework gets a substantial update. No spam ever.
Follow us on Twitter so that you can stay updated that way.