Is there away to introspect the Attributes prior to them being converted into a virtual-dom?
This approach would be useful.
scrollbox : List Attribute -> List Html
scrollbox attributes children = div (addclass "scrollbox" attributes) children
otherWidget : List Attribute -> List Html
otherWidget = scrollbox [class "other-widget"], [div [] [], ...]
addclass : String -> List Attribute -> List Attribute
-- how do you pattern match an Attribute?
And the resulting output would be
<div class="other-widget scrollbox">...</div>
Still not sure how I'd go about picking apart the list of attributes to locate the class and append to it since it's a native type.