Files
zitadel/apps/login/ui/TabGroup.tsx

17 lines
359 B
TypeScript
Raw Normal View History

2023-04-28 10:16:04 +02:00
import { Tab } from "#/ui/Tab";
2023-04-03 13:39:51 +02:00
export type Item = {
text: string;
slug?: string;
};
export const TabGroup = ({ path, items }: { path: string; items: Item[] }) => {
return (
<div className="-mt-2 flex flex-wrap items-center">
{items.map((item) => (
<Tab key={path + item.slug} item={item} path={path} />
))}
</div>
);
};