by ui-explorer12 · 8y ago · 0 comments
I really like Blueprint JS but I think we'll end up building on top of Ant Design. It's a huge collection of work; they've also started to push Ant Pro which is higher-order components targeting building of admin apps (more opinionated, more than just a UI facade).
I like Blueprint a lot more than Ant, but Blueprint doesn't pretend to support responsive applications[1], which was somewhat important to us. Blueprint exposes a couple building blocks (like PopOver) which really help in building more custom functionality. It actually looks like Evergreen be closer to Blueprint in this regard so I might piss off all the devs and evaluate Evergreen.
[1]https://github.com/palantir/blueprint/wiki/Frequently-asked-...
I use Basscss' grid and flex helper classes to define how my I can create a 3-column responsive layout with something like:
<div class="clearfix">
<div class="col md-col-4">
<SomeBlueprintComponent />
</div>
<div class="col md-col-4">
<SomeBlueprintComponent />
</div>
<div class="col md-col-4">
<SomeBlueprintComponent />
</div>
</div>
There's also a couple of other helpers like `max-width-*` which ensure responsiveness as the screen grows larger. Things like adding the `Classes.FILL` (which causes a button/control to go full width of its container) are useful for making things seem more like mobile (where buttons often are full width of the device, minus padding)All in all, while it's a slight bummer than Blueprint isn't just responsive out of the box, I haven't really found that to be a deterrent to getting things done.
While BlueprintJS is more intuitive, I find that it lacks a lot of built-in components compared to Ant Design.