[Feature Request] Add a slot to be able to change the icon template in v-stepper-step
See original GitHub issueProblem to solve
This would allow for more costumization of the stepper icon, currently the icon can only be passed as editableIcon, errorIcon, completedIcon
This would allow to change the logic of the displayed icons and to give more flexibility for their display (For example to add an image, or to change the default number or text to an icon, and to change the size and color of the stepper icon)
Related #3963
Proposed solution
To add a scoped slot named “icon” that will pass the props of the parent (hasError, completed, editable, isActive, isInactive and the icons props) so that we can declare our components like so
<v-stepper-step>
<template #icon="step">
<v-icon v-if="step.isActive">ActiveIcon</v-icon>
<v-icon v-else-if="step.editable">{{step.editableIcon}}</v-icon>
//Etc ...
</template>
Step Label
</v-stepper-step>
Issue Analytics
- State:
- Created 4 years ago
- Reactions:38
- Comments:17 (6 by maintainers)
Top Results From Across the Web
v-stepper-step API - Vuetify
Applies specified color to the control - it can be the name of material color ... Icon to display when step is marked...
Read more >vue.js - Remove v-steppers-step icon - Stack Overflow
I have solved it. I put a color="transparent" prop in v-stepper-step. You can still inspect the icon though. For my case, it's enough....
Read more >Stepper - Quasar Framework
This component allows you to place buttons within QStepper or QStep to navigate through the steps. It is up to you to add...
Read more >Vuetify V-Data-Table Expanded Items, Only Expand Certain ...
There is no way for the datatable to later insert the expandeditem slot [Feature Request] Add a slot to be able to change...
Read more >vuetify icons not showing in table after a filter - You.com
In your example, the template slot is declared incorrectly. ... vuetifyjs/vuetify[Feature Request] Add support for individual column filtering in Data ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems this was forgotten but is in good demand, so a little bump
@ibraahim6 @Tofandel I think the cleanest solution right now is to
extend
theVStepperStep
with custom code:VeStepperStep (Vuetify Extended Stepper Step):
To make it work smoothly with the stepper, the
VStepper
should also be extended:This way, when you include & use
ve-stepper
you can add steps ofve-stepper-step
that accept anicon
prop - everything else stays the same as it is with the originalVStepper
&VStepperStep
.Working piece: @codesandbox
https://user-images.githubusercontent.com/5388876/121066542-4df2a180-c7ca-11eb-9f4d-47c006788caa.mov