React Close Button Component API

Close Button API

Explore the API reference for the React Close Button component and discover how to effectively utilize its props for customization.

On this page

CCloseButton

jsx
import { CCloseButton } from '@coreui/react-pro'
PropertyDefaultType
aria-labelClosestring, undefined

Sets the aria-label attribute of the close button.

className-string, undefined

A string of all className you want applied to the base component.

dark-boolean, undefined

Invert the default color.

disabled-boolean, undefined

Toggle the disabled state for the component.

whiteDeprecated 5.0.0-boolean, undefined

Change the default color to white.