Skip to content

Commit 041f602

Browse files
committed
fix(Separator): Add props + class names
1 parent 1e73c89 commit 041f602

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/components/Separator.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
const Separator = () => <hr className="react-context-menu__separator" />;
1+
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+
};
211

312
export default Separator;

0 commit comments

Comments
 (0)