📦 Add tabs UI component

This commit is contained in:
pheralb
2024-10-29 18:33:47 +00:00
parent 806452bffa
commit 759a57468f
4 changed files with 80 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<script lang="ts">
import { Tabs as TabsPrimitive } from 'bits-ui';
import { cn } from '@/utils/cn';
type $$Props = TabsPrimitive.ListProps;
let className: $$Props['class'] = undefined;
export { className as class };
</script>
<TabsPrimitive.List
class={cn('inline-flex h-9 items-center justify-center space-x-1 rounded-lg', className)}
{...$$restProps}
>
<slot />
</TabsPrimitive.List>