Skip to content

shadcn.io is an independent project built on shadcn/ui

Parcel Locker Picker Map Block for Solid

A checkout step: pick a parcel locker near the delivery address from a radio list or a live map of Berlin, with walking times, opening hours and free sizes.

On this page5 sections
UI library: Ark UI

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

Let shoppers collect their parcel from a locker on their way, with this parcel locker picker map for Solid with Ark UI. Boxlane, a parcel locker network, shows the delivery step of a checkout: eight lockers round an address in Kreuzberg, Berlin, nearest first, in a list beside a live Map that follows your theme. The list is a Radio Group, the form's value: each locker gives its spot, the walk in minutes and metres, whether it is open at the hour the step is shown, and its free compartments by size, with the parcel's own size, M, set apart. A locker with no free M compartment is listed apart, under the choices, and drawn as a dashed pill on the map: it can't be chosen. Choosing a locker, from the list or its pill on the map, draws the walk from the address along real streets and frames it; the map button shows every locker again. Deliver to saves the choice in the step and says when the parcel will be ready. Built from Map, Radio Group, Field, Button and Guides. For shops, marketplaces and carriers that offer pick-up points at checkout.

FAQ

How does the choice reach my checkout?

The radio group is named locker inside a real form, so its value goes with the form like any input; submitting it runs confirm, which here only keeps the choice in the block's state and marks the button Saved. In your app, send the form to your order endpoint, or read the chosen id from the state.

Where do the lockers and walks come from, and what stays local?

The squares, stations and streets are real and each locker sits at its real place; Boxlane, the lockers' hours and the free compartments in LINES are invented. Each walk from the address was asked once of a public walking router while the block was written, simplified and typed in, and its length is measured along the line drawn. Nothing is fetched or sent except the map's tiles.

Which lockers can be chosen, and how are they sorted?

They are sorted by the walk from the address, nearest first, and the step opens on the nearest one with a free compartment of the parcel's size. A locker with no free M compartment isn't one of the radio choices: it is listed apart under them, its pill on the map is dashed, and pressing it there only says so. Open or closed is read at a fixed hour, Thursday 22 October 2026 at 20:30, so the step looks the same every time.

Can I use it without a mouse?

Yes. The lockers are one radio group: Tab into it and the arrow keys move between the lockers that can be chosen, the map following each choice; Deliver to is the form's submit button. The zoom buttons and the show-every-locker button are in the tab order, and a polite message reads each choice's walk, hours and free compartments.

How does it look on a phone?

The map comes first, its pills shortened to the minutes alone, then the step: the address and parcel, every locker in the list without an inner scroll, and the button. On wider screens the list sits beside the map at the same height and scrolls on its own.

How are the walking times worked out?

Each walk's length is the sum of its legs along the earth's curve, and the minutes are that length at 4.8 km/h, rounded, never less than one. The pill on the map and the list show the same minutes.