Skip to content

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

Sun Path Map Block for Solid

Where the sun rises, stands and sets over a spot on any day, drawn on a live map of Manhattan, with a time slider and the golden and blue hours listed.

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

Plan the light before you go, with this sun path map for Solid with Ark UI. Sunbearing, a photographer's sun calculator, draws the sun's day round a spot on a live Map that follows your theme. It opens on the Tudor City overpass on 29 May, a Manhattanhenge evening, when the sunset bearing runs straight down 42nd Street. Lines to the sunrise and sunset bearings end at a faint horizon circle, labelled with their times; the day's path is a dotted curve inside it, nearer the spot the higher the sun stands; and a thick line points at the sun at the time on the Slider, faded once the sun has set. Every position comes from NOAA's general solar position equations, worked out in the block. The card floating at the start (docked under the map on a phone) takes the date from an Input or five notable days in a Toggle Group (the equinox, both solstices and both Manhattanhenge evenings), the time in five-minute steps, and gives the sun's bearing, height and light; under it the morning and evening blue and golden hours, sunrise, solar noon and sunset are rows that set the slider. Click the map or drag the spot to plan from anywhere in New York. Built from Map, Input, Toggle Group, Slider, Button and Guides. For photographers, film crews, architects, events and anyone timing the light.

FAQ

How is the sun's position worked out?

sunAt follows NOAA's general solar position equations: the fractional year gives the equation of time and the sun's declination, the clock time and longitude give the true solar time and the hour angle, and from those come the sun's height and its bearing clockwise from north. Sunrise and sunset are the minutes the sun's centre crosses 0.833 degrees below the horizon (refraction included), found by scanning the day minute by minute. It's good to a few minutes and about a degree, and knows nothing about buildings or hills.

What are the golden and blue hours here?

Golden hour is while the sun is between 6 degrees above and 4 below the horizon; blue hour is between 4 and 6 degrees below. The list gives both in the morning and the evening, with sunrise and sunset (and their bearings) and solar noon (with the sun's greatest height). Pressing a row moves the time slider to it, and the row the slider is in is marked.

Which time zone are the times in?

New York time: EDT between the typed 2026 daylight saving dates (8 March to 1 November) and EST outside them, which is why the date takes days of 2026. The spot can move anywhere on the map, which is held to the New York area so the clock stays right. No date is read from your device: the block opens on 29 May 2026.

What is Manhattanhenge?

Manhattan's street grid runs about 29 degrees off true east and west, so on a few evenings around late May and mid July the sun sets in line with its cross streets. On 29 May the sunset bearing from the Tudor City overpass lies along 42nd Street; pick 12 July for the second evening, or a solstice to see how far the bearings swing.

Can I use it without a mouse?

Yes. The date is a native date field, the notable days a toggle group, the time a slider (five minutes a step, Home and End for the ends of the range), and every row of the day's light a button. The spot is a draggable marker: focus it and the arrow keys move it. A polite message reads the sun's bearing, height and light once the choice settles. Nothing is sent: the only requests are the map's tiles.

How does it look on a phone?

The map comes first, framed so the whole horizon circle shows, then the card docks under it with the date, the slider, the readout and the list. From a tablet up the card floats over the map's start and the circle is framed in the space beside it. The camera frames the circle when the block opens and when you go back to 42nd Street; a spot you click elsewhere doesn't move the map.