Skip to content

Crosshair

A precision crosshair: edge-to-edge lines with a center gap, rulers with tick marks along the edges and live monospace coordinates.

Plan
Free · MIT
Dependencies
React only
Props
8 (8 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Aim with your cursor

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
colorstring"#7DD3FC"Color of the lines and the crosshair.
gapnumber18Central gap around the cursor, in px.
showCoordsbooleantrueShows live coordinates next to the cursor.
rulerbooleantrueShows the rulers with tick marks along the edges.
percentbooleanfalseCoordinates as a percentage of the container instead of pixels.
hideCursorbooleantrueHides the system cursor inside the container.
autoplaybooleanfalseWanders on its own when nobody moves the cursor.
hintstring"Aim with your cursor"Hint text shown when there are no children.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { Crosshair } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • A translucent jelly cursor with a specular highlight: it drags droplets behind it that stretch into a trail and melt back into it when you stop.

    Cursors

  • A glossy ink trail that follows the cursor, widens as if bleeding into paper, and frays into strands until it fades away.

    Cursors

  • A glass magnifier that enlarges whatever is underneath it.

    Cursors