File size: 471 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<script>import { getScrollbarOrientation } from "../ctx.js";
import ScrollAreaThumbY from "./scroll-area-thumb-y.svelte";
import ScrollAreaThumbX from "./scroll-area-thumb-x.svelte";
const orientation = getScrollbarOrientation();
</script>
{#if $orientation === "vertical"}
<ScrollAreaThumbY {...$$restProps} let:builder>
<slot {builder} />
</ScrollAreaThumbY>
{:else}
<ScrollAreaThumbX {...$$restProps} let:builder>
<slot {builder} />
</ScrollAreaThumbX>
{/if}
|