Pin Drop Check

Pin Drop Check is a copy-paste React component that stops delivery sent to the wrong door before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/pin-drop-check
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsDelivery sent to the wrong door

Was this component page useful?

How do I install Pin Drop Check?

pnpm dlx shadcn@latest add @bollard/pin-drop-check

The files land in your project. They're yours to edit.

How do I use Pin Drop Check in React?

pin-drop-check-usage.tsx
import { PinDropCheck, type LatLng, type PinSurface } from "@/components/ui/pin-drop-check"

<PinDropCheck
  pin={pin}
  address={address}
  addressPoint={addressPoint}
  pincode="411045"
  pincodeCenter={{ lat: 18.5603, lng: 73.7853 }}
  pincodeRadius={1500}
  accuracy={30}
  classify={classify}
  value={choice}
  onValueChange={setChoice}
/>

What input mistakes does Pin Drop Check catch?

  • Pin far from the typed address
  • Pin outside the PIN or postcode area
  • Pin in water or on a highway (from your classify helper)
  • Gaps smaller than GPS accuracy are ignored

What props does Pin Drop Check accept?

PinDropCheck props
PropTypeDefault
pin* (required)

Where the user dropped the pin.

LatLng | null—
address* (required)

The typed address as text, for the readback.

string—
addressPoint

The typed address, geocoded.

LatLng | nullnull
pincode

The typed PIN / postcode.

string—
pincodeCenter

Centre of that PIN area.

LatLng | nullnull
pincodeRadius

How far the PIN area reaches, in metres. Default 3000.

number—
accuracy

GPS accuracy of the pin in metres.

number—
farAfter

Gap in metres that counts as far. Default 250.

number—
surface

Where the pin landed, if you already know.

PinSurface—
classify

Geo helper that says where a point landed. Called after the pin settles; errors are ignored.

(point: LatLng) => PinSurface | Promise<PinSurface>—
value

Controlled choice.

"pin" | "address" | null—
defaultValue

Initial choice when uncontrolled.

"pin" | "address" | nullnull
onValueChange

Called when the user picks pin or address.

(value: "pin" | "address") => void—
renderMap

Draw your own map (Leaflet, Google, Mapbox). Defaults to a small SVG sketch.

(context: PinMapContext) => React.ReactNode—
messages

Every visible string.

Partial<PinDropMessages>—

* required. Also accepts the native props of <div> (className, aria-*, data-*…), passed through to it.

How is Pin Drop Check accessible?

  • Sketch is role=img with an aria-label describing the gap
  • Choice group is labelled and described by the status
  • Loading and result lines have text; icons are aria-hidden

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

  • Needs your geocoder for the address and PIN centre
  • Surface checks depend on your geo helper
  • A straight-line distance, not the route

What expensive mistakes does Pin Drop Check stop?

Delivery sent to the wrong door

Also known as

map pin · delivery location · drop pin · geolocation · address · swiggy · zomato · location picker

Field type

What dependencies does Pin Drop Check require?

Pin Drop Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component namePin Drop Check
Registry identifier@bollard/pin-drop-check
Install commandnpx shadcn@latest add @bollard/pin-drop-check
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Pin Drop Check

How does Pin Drop Check validate Indian financial identifiers?

Pin Drop Check stops delivery sent to the wrong door. Complies with national standards for Pin far from the typed address, Pin outside the PIN or postcode area, Pin in water or on a highway (from your classify helper), Gaps smaller than GPS accuracy are ignored. Limitation: verify pin-drop-check with issuer gateway.

How do I install pin-drop-check with shadcn?

Run `npx shadcn@latest add @bollard/pin-drop-check`. Sources added: registry/default/pin-drop-check/pin-drop-check.tsx, registry/default/pin-drop-check/pin-geo.ts. Package requirements: lucide-react.

What props customize Pin Drop Check?

Pin Drop Check accepts `pin`, `address`, `addressPoint`, `pincode`, `pincodeCenter`. Configures map pin, delivery location, drop pin behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of pin-drop-check?

Needs your geocoder for the address and PIN centre. Surface checks depend on your geo helper. A straight-line distance, not the route Server requirement: backend verification for pin-drop-check.

How does Pin Drop Check meet accessibility guidelines?

Sketch is role=img with an aria-label describing the gap. Choice group is labelled and described by the status. Loading and result lines have text; icons are aria-hidden. Minimizes errors: map pin far from address, delivery location wrong.

Which components pair with Pin Drop Check?