Skip to content

The only tool you need to know what is happening and how to fix it.

534 B
Raw Blame
<script lang="ts">
	import { Tabs as TabsPrimitive } from 'bits-ui';
	import { cn, type WithoutChild } from '$lib/utils.js';

	let {
		ref = $bindable(null),
		class: className,
		children,
		...restProps
	}: WithoutChild<TabsPrimitive.ContentProps> = $props();
</script>

<TabsPrimitive.Content
	bind:ref
	class={cn(
		'mt-4 ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none',
		className
	)}
	{...restProps}
>
	{@render children?.()}
</TabsPrimitive.Content>