docs | ||
example | ||
src | ||
.gitignore | ||
docs.json | ||
elm.json | ||
LICENSE | ||
README.md |
Elm-Ui-Widgets
Usefull Widgets written for Elm-ui. These include:
- Select
- Tab
- Multi Select
- Collapsable
- Dialog
- Carousel
- Snackbar
- Sort Table
- Filter Select
- Validated Input
- Scrolling Nav
Examples of all widgets can be found here. For styling, I used my own Orasund/elm-ui-framework.
Why create such a package?
After looking at the current packages that implement various reusable views (and components) I noticed two things:
- There are (nearly) no widgets for Elm-Ui, and that's a problem because while going from
Element
toHtml
is easy, the opposite is not always possible (as a lot of styling in Elm-Ui would not be adapted to theHtml
element.) - There is collection of widgets, all in one place. A lot of components get reimplemented over and over again. It's hard to keep track of what package is currently the best.
This package tries to solve both of these problems.
Here are some alternative packages for creating UIs:
- Using Elm-Ui
- lucamug/style-framework - Full customization requires the cloning of the package.
- jxxcarlson/elm-widget - Uses a Builder pattern. Has some redefined customizations.
- QiTASC/hatchinq - Similar Arroach, stillin experimental phase
- Using Elm/Html
- nathanjohnson320/elm-ui-components - Sticks with the elm/html way of styling.
- NoRedInk/noredink-ui - Similar Approach but no customization options.
- peterszerzo/elm-natural-ui - Uses custom Attributes with some customization.
- Ui Frameworks
- aforemny/material-components-web-elm - Wrapper of Material design using custom elements.
- afidegnum/elm-tailwind - Wrapper of Tailwind by including the tailwind stylesheet.
- surprisetalk/elm-bulma - Wrapper for Bulma by including the bulma stylesheet.
- rundis/elm-bootstrap - Wrapper for Bootstrap by including the bootstrap stylesheet.
Why does this package also include components?
I wrote a component whenever the boilerplate of a similar reusable view is less than just include the wiring in the package.
Where will it go from here
I really would like to write a native material-design implementation in Elm. But after doing this package as a first step, (Which I already wrote while having the material.io docs as reference) I am not quite sure how I can avoid a lot of boilerplating. It seems like a Master View Type would be the solution, but I'm not quite sure how I can ensure the customizability when my entire page can be described as a single type. (I don't want to know how many parameters such a type would need).