dropdownDivider.tsx 558 B

12345678910111213141516171819
  1. import React from 'react';
  2. import classnames from 'classnames';
  3. import PropTypes from 'prop-types';
  4. import { cssClasses } from '@douyinfe/semi-foundation/dropdown/constants';
  5. import { BaseProps } from '../_base/baseComponent';
  6. const prefixCls = cssClasses.PREFIX;
  7. export type DropdownDividerProps = BaseProps;
  8. const DropdownDivider: React.FC<DropdownDividerProps> = (props = {}) => {
  9. const { style, className } = props;
  10. return <div className={classnames(`${prefixCls}-divider`, className)} style={style} />;
  11. };
  12. export default DropdownDivider;