/* Copyright 2026 Marimo. All rights reserved. */
import type React from "react";
export const Chip = ({ children }: { children: React.ReactNode }) => (
{children}
);
export const MoreChip = ({ count }: { count: number }) => (
+{count}
);
interface ChipWithCommaProps {
value: string;
showComma: boolean;
}
export const ChipWithComma = ({ value, showComma }: ChipWithCommaProps) => (
{value}
{showComma && ,}
);
interface CompactChipRowProps {
items: string[];
max?: number;
}
export const CompactChipRow = ({ items, max = 3 }: CompactChipRowProps) => {
if (items.length === 0) {
return null;
}
const visible = items.slice(0, max);
const hidden = Math.max(0, items.length - max);
return (
{visible.map((item, i) => (
))}
{hidden > 0 && }
);
};