palantir / blueprint

A React-based UI toolkit for the web
https://blueprintjs.com/
Apache License 2.0
20.52k stars 2.15k forks source link

[FR] - New component to represent process stages / timelines #260

Open orecus opened 7 years ago

orecus commented 7 years ago

I have a suggestion for a new component, a stepper component; I'm partial to Semantic UI's but Material UI's feels like a good "minmal" version of it.

I could see these options being available on the component.

In which you can combine to use all of them, or just for example the Icon or Label, or any combination of them to create an step item. Preferably the layout and size would go from Big (with all options) to a smaller layout if you just use the Label or Icon for example.

Could be nice if some animations where used while transitioning between steps, such as having the Description hidden until that step is the active one and fading in or whatnot.

A pseudo code example;


const currentStep = 0;

<Stepper currentStep={currentStep} numeralStep={false}>
<Step value={0} icon="fa fa-truck" iconCompleted="fa fa-check" label="Shipping" description="Please enter your shipping details"/>
<Step value={1} icon="fa fa-credit-card-alt" iconCompleted="fa fa-check" label="Credit Card Details" description="Please enter your credit card details"/>
<Step value={2} icon="fa fa-info" iconCompleted="fa fa-check" label="Order Confirmed" description="Your order have been confirmed and sent!"/>
</Stepper>
giladgray commented 7 years ago

lol check the PRs... #189

giladgray commented 7 years ago

feel free to leave comments #189! would love your input as we build it.

giladgray commented 7 years ago

aaand i didn't click on the links! I took Stepper to mean numerical input like iOS: https://developer.apple.com/ios/human-interface-guidelines/ui-controls/steppers/.

looks like we've got a naming problem!

orecus commented 7 years ago

@giladgray Hahaha I was just about to comment that it was not the same kind of component! ;)

But a better name might be <Guide>, <Trail> or <Process> perhaps? Also, some more insperation from Salesforce Lightning System :)

marutha commented 7 years ago

+1 for this

veeral-patel commented 5 years ago

Just for reference -

Equivalent component in Salesforce Lightning Design System: https://www.lightningdesignsystem.com/components/activity-timeline/

And in Ant Design: https://ant.design/components/timeline/

adidahiya commented 5 years ago

We're aware that this component exists in other UI kits. If you implement this using Blueprint core, it would be nice to see your code or a community-maintained package so that others can re-use your work. Other than that, there are no plans for us to develop this feature right now.

veeral-patel commented 5 years ago

@adidahiya No worries! I wasn't complaining about BlueprintJS not having the component btw - I just linked a few examples to help inspire BlueprintJS's design, if someone wants to implement it.

davidLeonardi commented 3 years ago

Resurrecting an old post to express interest in this !