Movatterモバイル変換


[0]ホーム

URL:


Framework:


Hire UsGet CoreUI PRO all-access

React Close Button Component

Close Button

A generic close button component for dismissing content like modals and alerts.

Other Frameworks

CoreUI components are available as native Angular, Bootstrap (Vanilla JS), and Vue components. To learn more please visit the following pages.

On this page

Example#

Provide an option to dismiss or close a component with<CCloseButton>. Default styling is limited, but highly customizable. Modify the Sass variables to replace the defaultbackground-image.

Disabled state#

Disabled close buttons change theiropacity. We've also appliedpointer-events: none anduser-select: none to preventing hover and active states from triggering.

Dark variant#

Adddark boolean property to the<CCloseButton>, to invert the close button. This uses the filter property to invert the background-image without overriding its value.

API#

Check out the documentation below for a comprehensive guide to all the props you can use with the components mentioned here.

CoreUI for React is Open Source UI Components Library for React.js.

CoreUI code licensedMIT, docsCC BY 3.0. CoreUI PRO requires acommercial license.


[8]ページ先頭

©2009-2025 Movatter.jp