<script>import { getCtx } from "../ctx.js";
import { melt } from "@melt-ui/svelte";
export let asChild = false;
export let el = void 0;
const {
  elements: { scrollbarY },
  getAttrs
} = getCtx();
const bitsAttrs = getAttrs("scrollbar-y");
$:
  attrs = {
    ...$$restProps,
    ...bitsAttrs
  };
$:
  builder = $scrollbarY;
$:
  Object.assign(builder, attrs);
</script>

{#if asChild}
	<slot {builder} />
{:else}
	<div {...builder} use:builder.action bind:this={el}>
		<slot {builder} />
	</div>
{/if}
