Earnshaw's theorem does not allow for a static configuration of permanent magnets to stably levitate another permanent magnet or materials that are paramagnetic or ferromagnetic against gravity.
Earnshaw's theorem indicates that there is no stable arrangement with permanent magnets capable of levitating another magnet or paramagnetic/ferromagnetic materials against gravity.