Component packs › Meridian › Airport Field

Airport Field

Search airports by city, code or field with the match highlighted, swap with a turn, and see the route drawn below.

Airport Field is an input from Meridian, a component pack with 7 map components: Seven travel and map components with real great-circle routes on a dotted globe. Price: $2 for the whole pack.

Built with: combobox, match highlight, drawn route.

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.

Airport Field props

PropTypeDefaultDescription
darkboolean
autoplayboolean
fromstring
tostring
onChange(v: { from: string; to: string; km: number }) => void

Methods on the ref

Use it in React

import AirportField from './AirportField';

<AirportField />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Meridian

Good for: Map components.