Crosshair Cursor
cursorProEt præcist trådkors med farve og tykkelse pr. akse, en midterprik, valgfri linealer og en levende X/Y- eller fast tekst, der vender ved kanterne.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Crosshair Cursor er en del af Manniche UI Pro. En nøgle åbner kildekoden til alle 66 effekter.
Køb · 49 €49 € · Introduktionspris til og med 31. december 2026. Derefter 79 €.
- Engangsbetaling
- Én udvikler
- Log ind og opret din nøgle med det samme
- Ingen moms (§ 19 UStG)
Har du en nøgle? Hent koden med CLI eller MCP.
Nøglen ligger i MANNICHE_PRO_KEY, aldrig i koden eller i adressen. Sådan sætter du den op
npx shadcn@latest add @manniche-pro/crosshair-cursorclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
CrosshairCursorProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
scope | 'container' | 'window' | 'window' | window draws the crosshair across the whole viewport; container only inside this component's box. |
color | string | – | Colour of both lines; defaults to a faint tint of the text colour. |
verticalColor | string | – | Colour of the vertical line (the one that marks x); overrides color. |
horizontalColor | string | – | Colour of the horizontal line (the one that marks y); overrides color. |
thickness | number | 1 | Line thickness in pixels for both lines. |
verticalThickness | number | – | Thickness of the vertical line; overrides thickness. |
horizontalThickness | number | – | Thickness of the horizontal line; overrides thickness. |
dashed | boolean | false | Dashed instead of solid lines. |
gap | number | 10 | Clear space round the pointer where the lines stop, in pixels. |
dotSize | number | 9 | Diameter of the marker at the crossing in pixels; 0 hides it. |
dotColor | string | '#3d7bff' | Colour of the marker. |
showLabel | boolean | true | Show the readout next to the pointer. |
label | string | – | Fixed text for the readout instead of live coordinates. |
format | (x: number, y: number) => string | – | Builds the readout from the coordinates, e.g. (x, y) => \${x}, ${y}\``. |
labelColor | string | '#ffffff' | Text colour of the readout. |
labelBackground | string | '#3d7bff' | Background of the readout. |
labelClassName | string | – | Classes for the readout: font, padding, corner radius and so on. |
rulers | boolean | false | Tick rulers along the top and left edges with a marker for the current position. |
hideCursor | boolean | true | Hide the system pointer while the crosshair is showing. |
children | ReactNode | – | Content under the crosshair (container scope). |
className | string | – | Classes for the wrapper (container scope). |
A11y
Skærmlæser
The lines, marker, rulers and X/Y readout are in a layer that is aria-hidden with pointer-events: none. The readout is decorative and not read.
Mindre bevægelse
The lines follow the pointer on every frame. Under reduced motion the fade-in and fade-out are removed; the lines still track the pointer, because that is the interaction itself.
Andet
The system pointer is hidden (hideCursor) only while the crosshair is showing, which needs a mouse or pen over the surface. Keyboard focus rings are not touched, and touch-first devices (pointer: coarse) get no crosshair at all. Set hideCursor to false to keep the normal pointer next to the lines.