Seven components built on real magnetic fields: iron filings that line up around a magnet you move with the cursor, a button coated in ferrofluid that grows spikes toward you, a switch whose knob pulls steel balls out of the track, a compass loader that hunts for north and locks on when your data is ready, a slider with magnetic detents and pins that lean toward the thumb, tabs whose bar magnet sweeps a strip of filings, and a list where pinned rows fly up to a magnet bar. Field maths and spring physics in plain TypeScript, keyboard and reduced motion on every item, zero dependencies.
Filings Field: Thousands of iron filings swing round to follow the field of a magnet you drag with the cursor; click to flip it and a spin ripples out.
Ferro Button: Ferrofluid coats the button and grows sharp spikes that lean toward the cursor; press it and they stand up all round.
Magnet Toggle: The knob is a magnet: switch on and the steel balls in the track jump up and cling to it; switch off and they drop, bounce and roll home.
Compass Loader: The needle hunts round the dial while you wait; call done() and it swings to north, overshoots and locks with a ring of light.
Snap Slider: Steel pins lean toward the magnet thumb as it passes; near a stop it is pulled in and lands with a clack, free in between.
Polarity Tabs: A bar magnet slides under the tabs, stretching with speed, while a strip of filings swings round to follow its field.
Attract List: Pin a row and it is pulled up to the magnet bar: it lifts, leans into the pull, flies past the others and lands with a clack.