Open probil opened 6 years ago
Yeah this is very nice to have.
<step-indicator
:handleClick="handleClick"
:current="current"
:total="total"
:current-color="currentColor"
:default-color="defaultColor"
>
<div class="someOtherStyle" />
</step-indicator>
I have been thinking about this and thought of building API something like this, the div
inside step-indicator
can have custom style required by the user and the style get's reflected on each list node, which is in the circle in the current implementation.
It would be nice to have ability to pass custom template using scoped slots https://vuejs.org/v2/guide/components.html#Scoped-Slots