Skip to content

Stepper

EStepper can help to streamline complicated procedures. It guides users through a series of processes or forms and allows them to focus more on the material by displaying multi-steps. Demo Here

Usage

vue

<template>
  <EStepper :modelValue="activeStep">
    <template #steps>
      <EStepperItem :step="1"/>
      <EStepperItem :step="2"/>
    </template>
    <template #content>
      <EStepperContent :step="1"> step 1</EStepperContent>
      <EStepperContent :step="2"> step 2</EStepperContent>
    </template>
  </EStepper>
  <EBtn @click="activeStep.value = 2" v-if="activeStep.value === 1">
    Next
  </EBtn>
</template>

<script setup>
  const activeStep = ref(1);
</script>

Props

  • For EStepper component, the following props are available:
PropTypeDefaultNote
modelValueNumber-Current step state
verticalBooleanfalseIt organizes your stepper vertically.
linearBooleanfalseForce stepper process to move though a defined path.
fixedBooleanfalseForces stepper process linearly though a fixed pattern.
dynamicBooleanfalseIt displays the completed steps dynamically with a tick icon.
colorString"primary"The given color is applied to the stepper - utility colors are supported (e.g primary or danger). you'll find a list of built-in classes on the src/styles/_vars.scsspage.
variantString"fill"The EStepper element can be represented in three ways: fill, alternate and gradient. alternate displays the chip with a light background. gradient displays smooth transitions between light and dark shades of specified color.
squareBooleanfalseRemoves rounded corners of the element.
actionClassesString-Overrides or extends the action's styles.
contentWrapperClassesString-Overrides or extends the content's wrapper styles.
  • For EStepperItem component, the following props are available:
PropTypeDefaultNote
infoString-Adds an info under the label.
stepNumber-Specifies the step for each element.
statusString"none"Validates the stepper steps and prevents it from moving on to the next step if the returned value is error.
colorString"primary"The given color is applied to the stepper - utility colors are supported (e.g primary or danger). you'll find a list of built-in classes on the src/styles/_vars.scsspage.
iconObject-By using icon prop the EStepperItem element will be visualized with an Icon. More Info about icons here.
variantString"fill"The EStepperItem element can be represented in three ways: fill, alternate and gradient. alternate displays the chip with a light background. gradient displays smooth transitions between light and dark shades of specified color.
squareBooleanfalseRemoves rounded corners of the element.
  • For EStepperContent component, the following props are available:
PropTypeDefaultNote
stepNumber-Specifies the step for each element.

Emits

The EStepper component contains following emits.

EmitDescription
update:modelValueControls the active tab.

Slots

The EStepper component provide following slots that enable you to customize the content.

SlotDescription
stepsThe slot used for the EStepperItem element.
contentThe slot used for the EStepperContent element.
actionThe slot used for the stepper actions.

The EStepperItem and EStepperContent components provide a default slot that enable you to customize the content.

SlotDescription
defaultThe default Vue slot.

COPYRIGHT