Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Material UI Stepper with alternative label placement

I want to create a material-ui stepper element which looks like this: enter image description here They call it stepper element with alternative label placement.

I am using material-ui library which implements Google's Material Design. Right now all examples from that library show in-line label placing and I don't see any property which would make it possible to use alternative label placement. But I believe it was implemented at some point of time because there was discussion about it.

Is there a way to set alternative label placement for stepper right now?

like image 403
Volodymyr Synytskyi Avatar asked Sep 14 '25 20:09

Volodymyr Synytskyi


2 Answers

According to their docs Labels can be placed below the step icon by setting the alternativeLabel prop on the Stepper component.

like image 119
PKV Avatar answered Sep 16 '25 12:09

PKV


you could use mui element customization ways to make your label position change.

check the official documentation here.

Overriding styles through sx properties is the easiest way to change the standard behaviour.

you need to locate the relevant CSS class in the devtools of your browser which was injected by Material UI. Then by using standard styling rules, you can change the appearance as you need.

like image 42
Assy Avatar answered Sep 16 '25 11:09

Assy