950f9555ee
* fix(ui): update coss ui components * fix(sidebar): remove redundant overflow-auto from SidebarContent ScrollArea already provides the scroll container, so keeping overflow-auto on the child creates a nested scroll area and prevents scrollFade from reflecting actual overflow. Addresses Cubic AI review feedback with confidence 9/10. Co-Authored-By: unknown <> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
24 lines
639 B
TypeScript
24 lines
639 B
TypeScript
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
|
|
import { cn } from "@coss/ui/lib/utils";
|
|
|
|
function Separator({
|
|
className,
|
|
orientation = "horizontal",
|
|
...props
|
|
}: SeparatorPrimitive.Props) {
|
|
return (
|
|
<SeparatorPrimitive
|
|
className={cn(
|
|
"shrink-0 bg-input data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch",
|
|
className,
|
|
)}
|
|
data-slot="separator"
|
|
orientation={orientation}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export { Separator };
|