Porsche Design SystemSearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
ConfiguratorExamplesUsageAccessibilityAPI
Stepper Horizontal The p-stepper-horizontal component displays progress through a sequence of logical and numbered steps. It is ideal when the contents of one step depends on an earlier step. Avoid using long step names. The component does not handle the display of your content. When using the component you have to manually take care of the content to be rendered beneath. To help with this task, if a step is clicked, the component triggers an event called change with the index of the clicked step. Note: Maximum of 9 steps are supported. It is a controlled component. This means it does not contain any internal state and you got full control over its behavior. Use p-stepper-horizontal-items inside the p-stepper-horizontal component. Each item will be rendered as a step. You have to manually manage the state of the items by setting the state property. The state property can be set to complete when a step is complete, warning when a user has to revisit the step, current for the step that is in progress and undefined. If the state property is undefined the step renders as stateless and disabled. This can be used to prevent the user from navigating to a step which is not yet reachable. This is to be used for future steps which cannot yet be processed at the time. By clicking on a previous step, the p-stepper-horizontal emits the update event, which contains the index of the clicked step.
Step 1Step 2Step 3Step 4
Open in Stackblitz
<!doctype html>
<html lang="en" class="auto">
<head>
  <title></title>
</head>
<body class="bg-base">

<p-stepper-horizontal>
  <p-stepper-horizontal-item state="complete">
    Step 1
  </p-stepper-horizontal-item>
  <p-stepper-horizontal-item state="warning">
    Step 2
  </p-stepper-horizontal-item>
  <p-stepper-horizontal-item state="current">
    Step 3
  </p-stepper-horizontal-item>
  <p-stepper-horizontal-item>
    Step 4
  </p-stepper-horizontal-item>
</p-stepper-horizontal>
<script>

</script>
</body>
</html>
Global settingsThemeChanges the theme of the application and any Porsche Design System component. It's possible to choose between forced theme light and dark. It's also possible to use auto, which applies light or dark theme depending on the operating system settings automatically.LightDarkAuto (sync with operating system)DirectionChanges the direction of HTML elements, mostly used on<html> tag to support languages which are read from right to left like e.g. Arabic.LTR (left-to-right)RTL (right-to-left)AutoText ZoomChanges the text size and values with unit rem or em relatively. This setting can be defined in browser settings for any website or by an application itself on<html> tag. To achieve WCAG 2.2 AA compliance it's obligatory to support text zoom up to at least 200%.100%130%150%200%