Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can we add custom icon at the end of complete step #101

Open
ahtisham09 opened this issue Sep 6, 2020 · 1 comment
Open

can we add custom icon at the end of complete step #101

ahtisham09 opened this issue Sep 6, 2020 · 1 comment

Comments

@ahtisham09
Copy link

No description provided.

@abdmun8
Copy link

abdmun8 commented Sep 11, 2020

you can achieve it by using renderStepIndicator method
here is an example
<StepIndicator customStyles={customStyles} currentPosition={currentStep} labels={labels} stepCount={3} renderStepIndicator={this.renderStepText} />

and here is the method to render your icon
renderStepText = ({ position, stepStatus }) { return <Icon name="search" /> }

//position is your current step position, you can check it
// step status is status for your current position = finished || current || unfinished you can create condition based on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants