React Attitude Indicator

The most recognizable instrument in the cockpit, driven by data: an artificial horizon showing pitch and roll, with a pitch ladder, a roll scale and pointer at the top, the fixed amber aircraft symbol, and a mono pitch/roll/heading readout. Sky and ground stay flight-standard blue and brown so it reads as an ADI in any theme — a deliberate exception to the token palette, because instrument conventions override brand here.

302010102030
PITCH +0.0°ROLL R0.0°HDG 090°
Live — descending turn
302010102030
PITCH +0.0°ROLL R0.0°
Straight & level
302010102030
PITCH +15.0°ROLL L30.0°
Climbing left bank

The left instrument flies a live maneuver — the horizon pitches and banks against the fixed aircraft symbol, exactly like an ADI.

Installation

npx shadcn@latest add attitude-indicator.json

Usage

Loading...

Props

PropTypeDefaultDescription
pitchnumber0Degrees, + = nose up
rollnumber0Degrees, + = right bank
headingnumberOptional heading readout (deg)
sizenumber220Instrument diameter in px
labelstringCaption under the readout