Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
// SPDX-License-Identifier: AGPL-3.0-only
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
import type { ComponentProps } from "react";
import { forwardRef } from "react";
import type { ButtonProps } from "./Button";
import { Button } from "./Button";
import { cn } from "./utils/cn";
const Menubar = forwardRef<HTMLDivElement, ComponentProps<"div">>(
({ children, className, ...props }, ref) => {
return (
<div
{...props}
className={cn(
"min-h-[2.5rem] flex items-center bg-card border border-border rounded-xl justify-start p-1 w-full space-x-1 scrollbar-hide dark:border-none dark:shadow-[inset_0_0.5px_0_rgb(255_255_255_/_0.08),_inset_0_0_1px_rgb(255_255_255_/_0.24),_0_0_0_0.5px_rgb(0,0,0,1),0px_0px_4px_rgba(0,_0,_0,_0.08)]",
// Phones: the bar scrolls sideways (with a fade) instead of clipping.
"max-md:overflow-x-auto max-md:scroll-fade-x max-md:[&>*]:shrink-0",
className
)}
>
{children}
</div>
);
}
);
Menubar.displayName = "Menubar";
const MenubarItem = forwardRef<HTMLButtonElement, ButtonProps>(
({ children, ...props }, ref) => {
return (
<Button className="rounded-md" ref={ref} variant="ghost" {...props}>
{children}
</Button>
);
}
);
MenubarItem.displayName = "MenubarItem";
export { Menubar, MenubarItem };