11

When using the v-stepper component in Vuetify, there is a default border like shape that appears on the edges:

enter image description here

I want to remove it. I tried to set the elevation to 0 but it did not work.

<v-stepper v-model="e1" class="elevation-{0}">

Codepen

How to achieve this?

Billal Begueradj
  • 20,717
  • 43
  • 112
  • 130

4 Answers4

9

Not elevation-{0}, but elevation-0.
Elevation docs:

You can set an element's elevation by using the class elevation-{n}, where n is a integer between 0-24 corresponding to the desired elevation.

So actually you need to remove parentheses as well.
Should be clear because you can't use parentheses in class names as far as I know.

Traxo
  • 18,464
  • 4
  • 75
  • 87
  • Any thought about why the prop elevation from the component is not working? Also flat not working ... – Ignasi Oct 17 '22 at 15:29
  • @Ignasi Which Vuetify version? Also could you provide chunk of relevant code, just to be sure? – Traxo Oct 18 '22 at 20:37
  • 2
    With I still got the elevation. However, when adding class="elevation-0", the elevation disappears. Version -> vuetify@2.3.10 Thanks! – Ignasi Oct 26 '22 at 08:00
4

just put the following

<v-stepper v-model="e1" class="elevation-0">
Yair_May
  • 341
  • 1
  • 11
3

Adding some CSS works (at least w/ your pen):

.v-stepper__header {
  box-shadow: none;
} 
Matt
  • 795
  • 1
  • 6
  • 20
1

<v-stepper v-model="e1" flat> for removing round edges and

.v-stepper__header {
  box-shadow: none;
}

to remove header shadow

deirdreamuel
  • 609
  • 8
  • 11