Component packs › Vector › Target Lock

Target Lock

Corner brackets fly to whatever you hover, resize on a spring and snap shut with a lock readout.

Target Lock is an overlay from Vector, a component pack with 8 components: Sci-fi HUD components that stay readable. Price: $2 for the whole pack.

Built with: spring reticle, acquire → lock, focus follows.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Target Lock props

PropTypeDefaultDescription
itemsTargetLockItem[]
autoplaybooleanShowcase mode: locks onto tiles by itself.
onLock(index: number) => void

Methods on the ref

Use it in React

import TargetLock from './TargetLock';

<TargetLock />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Vector

Good for: Admin dashboard UI, Chart components.