UNPKG

@carbon/react

Version:

React components for the Carbon Design System

31 lines (27 loc) 809 B
/** * Copyright IBM Corp. 2016, 2023 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { usePrefix } from '../../internal/usePrefix.js'; var _hr; const SideNavDivider = ({ className }) => { const prefix = usePrefix(); const classNames = cx(`${prefix}--side-nav__divider`, className); return /*#__PURE__*/React.createElement("li", { className: classNames }, _hr || (_hr = /*#__PURE__*/React.createElement("hr", null))); }; SideNavDivider.propTypes = { /** * Provide an optional class to be applied to the containing node */ className: PropTypes.string }; export { SideNavDivider as default };