App UI kits › Switchback › Trail
The route draws itself onto a relief map with 50 m contours; the profile names each point and its height.
Trail is a screen from Switchback, an app ui kit with 10 screens: A hiking app with a 3D trail you scrub along, and a sunset check that keeps you off the hill in the dark. Price: $5 for the whole pack.
Built with: relief map, profile, reports.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
photos | WbPhotos | ||
trail | string | ||
on3d | () => void | ||
onStart | () => void |
destroy(): voidimport SwitchbackTrail from './SwitchbackTrail';
<SwitchbackTrail />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Hiking app UI.