Parametric Curve Stair

In this grasshopper example file you can model a parametric stair by defining a closed planar curve in Rhino Download this definition https://parametrichouse.com/parametric-curve-stair