Files
Stackq/node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-y.svelte
T
eewing cf73cd3b4c INIT
2026-02-17 14:10:16 -06:00

21 lines
711 B
Svelte

<script lang="ts">
import { IsMounted } from "runed";
import { boxWith, mergeProps } from "svelte-toolbelt";
import { ScrollAreaScrollbarYState } from "../scroll-area.svelte.js";
import type { _ScrollbarStubProps } from "../types.js";
import ScrollAreaScrollbarShared from "./scroll-area-scrollbar-shared.svelte";
let { ...restProps }: _ScrollbarStubProps = $props();
const isMounted = new IsMounted();
const scrollbarYState = ScrollAreaScrollbarYState.create({
mounted: boxWith(() => isMounted.current),
});
// oxlint-disable-next-line no-explicit-any
const mergedProps = $derived(mergeProps(restProps, scrollbarYState.props)) as any;
</script>
<ScrollAreaScrollbarShared {...mergedProps} />