Bodyweight above the BB, solid feet, relaxed but controlled hands, 90 degree approach to edges and look up not at the step immediately ahead.
On a hardtail with flat pedals it’s a little more awkward than on a bouncer or with SPDs. The suspension obviously compensates and the cleats keep you attached.
If it’s a short set then I find it helps to unweight a little on entry and ride the set as a single obstacle….or jump them 😈
Adjusting posture before returning to the flat is important, again stay above the BB but lean back a little to stop the front wheel from shoving straight into the bottom step/flat.