Skip to content

Angle slider

A dial that picks an angle - a rotation, a direction - by pointer or keyboard, with optional marks around it.

Styled with CSS Tailwind

Rotation

A press or drag anywhere on the dial points the value at the pointer. The thumb is the focusable role="slider" ("90 degrees"): → / ↑ add a degree, ← / ↓ take one away and wrap past 0, Page Up / Page Down and Shift + arrows move 15°, Home / End go to 0° and 359°. The thumb and markers fill the dial rotated to their angle, so a needle or tick drawn at their top center points at it.

Rotation: 90°

Compass in a field

Step="45" snaps to the eight compass points; a BitBhField's label names the thumb and ValueText says "90°, east". Each marker exposes --bit-bh-marker-angle, which turns its label upright.

An unhandled error has occurred. Reload 🗙