This component no longer exists. It was in sv11-twango’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-09 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
Scrub Bar
sv11-twango/scrub-barRemovedComponent
A media scrub bar primitive with track, progress, thumb, and time label subcomponents.
Live preview
live · rendered by the registry
Rendered by sv11-twango on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add http://sv11.ui.twango.dev/r/scrub-bar.jsonSource
1<script lang="ts">2 import type { Snippet } from "svelte";3 import type { HTMLAttributes } from "svelte/elements";4 import { cn } from "$UTILS$.js";5 import { setScrubBarContext } from "./context.js";67 let {8 class: className,9 duration,10 value,11 onScrub,12 onScrubStart,13 onScrubEnd,14 children,15 ...restProps16 }: HTMLAttributes<HTMLDivElement> & {17 /** Total duration of the timeline, in seconds. */18 duration: number;19 /** Current playback time, in seconds. */20 value: number;21 /** Called with the new time (in seconds) as the user scrubs. */22 onScrub?: (time: number) => void;23 /** Called when the user presses down on the track or thumb. */24 onScrubStart?: () => void;25 /** Called when the user releases the pointer after scrubbing. */26 onScrubEnd?: () => void;27 children?: Snippet;28 } = $props();2930 const progress = $derived(duration > 0 ? (value / duration) * 100 : 0);3132 setScrubBarContext({33 get duration() {34 return duration;35 },36 get value() {37 return value;38 },39 get progress() {40 return progress;41 },42 get onScrub() {43 return onScrub;44 },45 get onScrubStart() {46 return onScrubStart;47 },48 get onScrubEnd() {49 return onScrubEnd;50 },51 });52</script>5354<div data-slot="scrub-bar-root" class={cn("flex w-full items-center", className)} {...restProps}>55 {@render children?.()}56</div>
What it pulls in
Other registry items
