You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 20, 2019. It is now read-only.
It would be nice if the step title could officially support arbitrary components rather than just strings, for instance to support simple icons (like font awesome) as part of the title.
I agree this would be a nice feature to have. I will look into it sometime within the next week or two and let you know what I come up with. I do have a feeling that styling the circles with the icons may be difficult. The icons will most likely have to be at a fixed size. I've tried in the past enlarging the font of the text inside the circle and the bars adjacent to the circles get off-centered very quickly.
In summary, adding icons may not be hard to do, but allowing styles to adjust according to the size of each icon may cause some issues.
I'm also encountering this problem as I supply an entire button as title. It works perfectly, but I get the annoying proptype warning. I don't think you need to concern yourself with how the circle looks, as the title is shown below the circle and not inside it. From my point of view you can just enable object as proptype and it seems to work fine. Thanks for a great and easy to use package!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It would be nice if the step
title
could officially support arbitrary components rather than just strings, for instance to support simple icons (like font awesome) as part of the title.For example:
It technically works now, but I get the warning:
Failed prop type: Invalid prop `title` of type `object` supplied to `Step`, expected `string`.
The text was updated successfully, but these errors were encountered: