Seek Controls
Skip forward or backward by a fixed offset.
Installation
npx shadcn add @limeplay/seek-controlsRequires timelineFeature registered in your
createMediaKit.
Usage
import {
CaretCircleDoubleLeftIcon,
CaretCircleDoubleRightIcon,
} from "@phosphor-icons/react"
import { Button } from "@/components/ui/button"
import { SeekControl } from "@/components/limeplay/seek-controls"
export function SeekButtons() {
return (
<div className="flex items-center gap-2">
<SeekControl offset={-10} asChild>
<Button variant="ghost" size="icon">
<CaretCircleDoubleLeftIcon />
</Button>
</SeekControl>
<SeekControl offset={10} asChild>
<Button variant="ghost" size="icon">
<CaretCircleDoubleRightIcon />
</Button>
</SeekControl>
</div>
)
}No store setup needed beyond timelineFeature — seeking is a direct action on the media element via the useSeek hook internally. Supports asChild for custom button rendering.