mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:24:51 +00:00
initial setup, ztdl-login, core
This commit is contained in:
16
apps/login/ui/TabGroup.tsx
Normal file
16
apps/login/ui/TabGroup.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Tab } from '#/ui/Tab';
|
||||
|
||||
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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user