allenai / pdf-component-library

51 stars 5 forks source link

Add a UI library & use it for added fanciness #12

Closed mjlangan closed 3 years ago

mjlangan commented 3 years ago

Ref https://github.com/allenai/scholar/issues/28417

This PR adds the antd component library for the example reader. This is the same library used by the ReViz team for Beaker and Varnish, so there's already some history here at AI2 for using it. It's also a bit less opinionated than Material (used for a couple components by the current Semantic Reader prototype), so it's easier to incorporate into an app without having to wholly buy into the entire design philosophy of the library.

The Outline now lives in a Drawer that can be opened via the Header:

And the example BoundingBoxes now use Popovers instead of window.alert() calls: