mirror of
https://github.com/pheralb/svgl.git
synced 2025-03-13 08:30:34 +08:00
23 lines
536 B
Svelte
23 lines
536 B
Svelte
<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();
|
|
|
|
</script>
|
|
|
|
<TabsPrimitive.List
|
|
class={cn('mb-2 flex flex-wrap items-center justify-center space-x-1 rounded-lg', className)}
|
|
{...rest}
|
|
>
|
|
{@render children?.()}
|
|
</TabsPrimitive.List>
|