⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
import type { ComponentProps } from 'react';
import { cn } from '@/lib/utils';
// Shared tab shell (background/active styling), used by the All tab, the saved
// tabs and the drag overlay so they look identical. Extra div props (the sortable ref
// and drag listeners) pass through.
export default function ViewTabChrome({
active,
own = false,
className,
children,
...props
}: { active: boolean; own?: boolean } & ComponentProps<'div'>) {
return (
<div
className={cn(
'flex shrink-0 items-center rounded-md text-sm transition-colors',
active
? 'bg-secondary font-medium text-foreground'
: 'text-muted-foreground hover:bg-accent hover:text-foreground',
own &&
(active
? 'bg-primary/15 text-primary'
: 'bg-primary/5 text-primary/80 hover:bg-primary/10 hover:text-primary'),
className,
)}
{...props}
>
{children}
</div>
);
}