UNPKG

@coreui/react-pro

Version:

UI Components Library for React.js

22 lines (19 loc) 915 B
import { __rest } from '../../node_modules/tslib/tslib.es6.js'; import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; import classNames from '../../_virtual/index.js'; const CCloseButton = forwardRef((_a, ref) => { var { className, dark, disabled, white } = _a, rest = __rest(_a, ["className", "dark", "disabled", "white"]); return (React.createElement("button", Object.assign({ type: "button", className: classNames('btn', 'btn-close', { 'btn-close-white': white, }, disabled, className), "aria-label": "Close", disabled: disabled }, (dark && { 'data-coreui-theme': 'dark' }), rest, { ref: ref }))); }); CCloseButton.propTypes = { className: PropTypes.string, dark: PropTypes.bool, disabled: PropTypes.bool, white: PropTypes.bool, }; CCloseButton.displayName = 'CCloseButton'; export { CCloseButton }; //# sourceMappingURL=CCloseButton.js.map