Skip to content

feat(stepper): Make CdkStepper generic to support extended CdkStep #22590

Open
@lukasmatta

Description

@lukasmatta

Feature Description

Currently, when I want to use CdkStepper with a custom class for a step (extension of a class CdkStep, e.g. MyStep extends CdkStep), I am not able to as CdkStepper is not generic and is fixed to CdkStep class for a step. I would like to make CdkStepper generic, so I can use CdkStepper<MyStep>.

Use Case

Let's say I have a classOnboardingStepComponent extends CdkStep which has the property specialLabel. I want to use the CdkStepper with this specialized step component.

Let me know if this sounds reasonable, if so, I can work on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: cdk/stepperfeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: discussionFurther discussion with the team is needed before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions