Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

WIP: Prototype of UI component catalog/design system with elm-ui-explorer #257

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hagl
Copy link
Contributor

@hagl hagl commented Oct 21, 2021

Overview

I've set up elm-ui-explorer for the project and added a few stories for Button, Tooltip and Modal.

The UI Explorer can be started with npm run uie and is then available on http://localhost:1235

image

Adding static components is straightforward, but adding interactive components seems rather cumbersome since the model and update function are global for all components.
One example where some interactivity is necessary is the Modal story: Simply rendering the modal component statically (as it is done now) makes the UI unusable because the modal dialog cannot be closed.

So in all, I'm not completely convinced this will add enough value. But since I spend some time getting it running, I created the PR as a basis for discussion.

Implementation notes

I use webpack to run the UI Explorer instead of elm-live that comes with elm-ui-explorer to reduce the number of new dependencies. I kept the webpack configuration very similar to webpack.dev.js

Loose ends

The changes in package-lock.json seem massive, it might be worth investigating if we want to continue with this PR

@hojberg
Copy link
Member

hojberg commented Oct 21, 2021

Cool! Yeah that is a lot of new dependencies, but it does look pretty cool 🤔

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants