Two adjacent fluids passing through a grooved microfluidic channel can be directed to form a sheath around a prepolymer core; thereby determining both shape and cross-section. Photoinitiated polymerization, such as thiol click chemistry, is well suited for rapidly solidifying the core fluid into a microfiber with predetermined size and shape.