mdgriffith / style-elements

Create styles that don't mysteriously break!
http://package.elm-lang.org/packages/mdgriffith/style-elements/latest
BSD 3-Clause "New" or "Revised" License
445 stars 49 forks source link

Expose `Element.Input.Label` type #95

Closed smt116 closed 6 years ago

smt116 commented 6 years ago

Allow to use Label type outside of the style-elements package. As the result, it is possible to create helper functions that uses Label type for their adnotations.

For example:

placeholderConfig : String -> Input.Label style variation msg
placeholderConfig placeholderText =
    Input.placeholder
        { label = Input.hiddenLabel ""
        , text = placeholderText
        }
cjduncana commented 6 years ago

What about adding documentation to the Label type?

mdgriffith commented 6 years ago

Thanks!