We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e73c89 commit 041f602Copy full SHA for 041f602
src/components/Separator.tsx
@@ -1,3 +1,12 @@
1
-const Separator = () => <hr className="react-context-menu__separator" />;
+import { HTMLAttributes } from 'react';
2
+import cx from 'clsx';
3
+
4
+export interface SeparatorProps extends HTMLAttributes<HTMLHRElement> {}
5
6
+const Separator = ({ className, ...rest }: SeparatorProps) => {
7
+ const classNames = cx('react-context-menu__separator', className);
8
9
+ return <hr className={classNames} {...rest} />;
10
+};
11
12
export default Separator;
0 commit comments