Cursors
Designer's Crosshair
A crosshair across the whole frame, coordinates beside the cursor and guides that stick to the edges and centres of elements — and to the grid step when none is near.
What you can change
- nodes — the layout elements: label and box in fractions of the frame
- grid — the grid step in pixels
- snap — the snapping radius to an edge
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/cursor-003?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The cursor here is a tool rather than decoration: the native cursor is hidden and replaced by a cross, two guides spanning the frame and a chip with the coordinates. On every move the distance to every element edge is measured — left, right and centre on each axis; the nearest one within the snap radius takes the guide over, the guide turns solid and accented, and the element lights up. While no edge is near, the coordinate settles on the grid step: a free value in a layout is almost always an accident rather than a decision. A separate bar draws the measurement — the distance from the real position of the hand to the edge the crosshair snapped to. Everything is computed in the move handler, with no animation loop: between cursor moves the picture has no reason to change. The theme comes from the surroundings through light-dark().
Tags
- cursor
- crosshair
- guides
- snapping
- design-tool
- pointer
- grid
- measure
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…