Select and Context Menu component with storybook and testing

This commit is contained in:
adilallo
2025-10-10 12:07:13 -06:00
parent 2bc5fcdf45
commit 9c72afdc52
20 changed files with 3827 additions and 88 deletions
+21
View File
@@ -0,0 +1,21 @@
"use client";
import React, { forwardRef, memo } from "react";
const ContextMenuDivider = forwardRef(({ className = "", ...props }, ref) => {
const dividerClasses = `
border-t border-[var(--color-border-default-tertiary)]
my-1
${className}
`
.trim()
.replace(/\s+/g, " ");
return (
<div ref={ref} className={dividerClasses} role="separator" {...props} />
);
});
ContextMenuDivider.displayName = "ContextMenuDivider";
export default memo(ContextMenuDivider);