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.change with the index of the clicked step.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.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.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.p-stepper-horizontal emits the update event, which contains the index of the
clicked step.<!doctype html>
<html lang="en" class="scheme-light-dark">
<head>
<title></title>
</head>
<body class="bg-canvas">
<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>