But an entire CNC machine ... the maximum value out of the PCB material, the motor driver boards interface via card edge connectors with the (currently Arduino based) controller board.
This familiar footprint manages to contain everything you need for a three-axis machine. The purple boards slotted into the pairs of SIL headers are Pololu Stepper motor drivers. Going this route ...