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)DirectionThe dir global attribute in HTML changes the direction of text and other content within an element. It's most often used on the <html> tag to set the entire page's direction, which is crucial for supporting languages that are written from right to left (RTL), such as Arabic and Hebrew. For example, using <html dir="rtl"> makes the entire page display from right to left, adjusting the layout and text flow accordingly.LTR (left-to-right)RTL (right-to-left)Text ZoomTo ensure accessibility and comply with WCAG 2.2 AA standards, it is mandatory for web content to support text resizing up to at least 200% without loss of content or functionality. Using relative units like rem is a best practice for achieving this, as they allow the text to scale uniformly based on the user's browser settings.100%130%150%200%