svgl/src/ui/tabs/tabs-list.svelte

23 lines
536 B
Svelte
Raw Normal View History

2024-10-29 18:33:47 +00:00
<script lang="ts">
import { Tabs as TabsPrimitive } from 'bits-ui';
import { cn } from '@/utils/cn';
type $$Props = TabsPrimitive.ListProps;
interface Props {
class?: $$Props['class'];
children?: import('svelte').Snippet;
[key: string]: any
}
let { class: className = undefined, children, ...rest }: Props = $props();
2024-10-29 18:33:47 +00:00
</script>
<TabsPrimitive.List
class={cn('mb-2 flex flex-wrap items-center justify-center space-x-1 rounded-lg', className)}
{...rest}
2024-10-29 18:33:47 +00:00
>
{@render children?.()}
2024-10-29 18:33:47 +00:00
</TabsPrimitive.List>