Pages are now available as full-screen example templates that showcase real-world use cases and best practices for composing interfaces with the aFP Design System.
<afp-stepper-content>Since 1.5.0
stable
This component uses the light DOM, so its markup and styles are part of the regular document flow.
A component to hold the content associated with a stepper item in a stepper.
Displays its content when its stepper item is the active step.
Active Step Content
This content is displayed because the step content is active.
<afp-stepper-contentname="step1"active><b>Active Step Content</b><p>This content is displayed because the step content is active.</p></afp-stepper-content>
<afp-stepper-content[name]="'step1'"active><b>Active Step Content</b><p>This content is displayed because the step content is active.</p></afp-stepper-content>
<AfpStepperContentname="step1"active><b>Active Step Content</b><p>This content is displayed because the step content is active.</p></AfpStepperContent>
<AfpStepperContent:name="'step1'"active><b>Active Step Content</b><p>This content is displayed because the step content is active.</p></AfpStepperContent>
The stepper automatically matches content to steps by their index order. When no name attribute is provided, the content elements are associated with steps sequentially:
Content for step 1Content for step 2
<afp-stepper><afp-stepper-itemlabel="First"></afp-stepper-item><afp-stepper-itemlabel="Second"></afp-stepper-item><afp-stepper-content>Content for step 1</afp-stepper-content><afp-stepper-content>Content for step 2</afp-stepper-content></afp-stepper>
<afp-stepper><afp-stepper-item[label]="'First'"></afp-stepper-item><afp-stepper-item[label]="'Second'"></afp-stepper-item><afp-stepper-content>Content for step 1</afp-stepper-content><afp-stepper-content>Content for step 2</afp-stepper-content></afp-stepper>
<AfpStepper><AfpStepperItemlabel="First"></AfpStepperItem><AfpStepperItemlabel="Second"></AfpStepperItem><AfpStepperContent>Content for step 1</AfpStepperContent><AfpStepperContent>Content for step 2</AfpStepperContent></AfpStepper>
<AfpStepper><AfpStepperItem:label="'First'"></AfpStepperItem><AfpStepperItem:label="'Second'"></AfpStepperItem><AfpStepperContent>Content for step 1</AfpStepperContent><AfpStepperContent>Content for step 2</AfpStepperContent></AfpStepper>
For explicit control over which content displays for each step, use the name attribute on stepper-content and the content attribute on stepper-item:
Review your information
Enter your details
<afp-stepper><afp-stepper-itemlabel="Personal"content="personal"></afp-stepper-item><afp-stepper-itemlabel="Review"content="review"></afp-stepper-item><afp-stepper-contentname="review">
Review your information
</afp-stepper-content><afp-stepper-contentname="personal">
Enter your details
</afp-stepper-content></afp-stepper>
<afp-stepper><afp-stepper-item[label]="'Personal'"[content]="'personal'"></afp-stepper-item><afp-stepper-item[label]="'Review'"[content]="'review'"></afp-stepper-item><afp-stepper-content[name]="'review'">
Review your information
</afp-stepper-content><afp-stepper-content[name]="'personal'">
Enter your details
</afp-stepper-content></afp-stepper>
<AfpStepper><AfpStepperItemlabel="Personal"content="personal"></AfpStepperItem><AfpStepperItemlabel="Review"content="review"></AfpStepperItem><AfpStepperContentname="review">
Review your information
</AfpStepperContent><AfpStepperContentname="personal">
Enter your details
</AfpStepperContent></AfpStepper>
<AfpStepper><AfpStepperItem:label="'Personal'":content="'personal'"></AfpStepperItem><AfpStepperItem:label="'Review'":content="'review'"></AfpStepperItem><AfpStepperContent:name="'review'">
Review your information
</AfpStepperContent><AfpStepperContent:name="'personal'">
Enter your details
</AfpStepperContent></AfpStepper>