vrimar / construct-ui

A Mithril.js UI library
https://vrimar.github.io/construct-ui
MIT License
287 stars 24 forks source link

Ability to insert arbitrary left/right content on Button #1

Open abidingotter opened 5 years ago

abidingotter commented 5 years ago

I like the simplicity of the iconLeft and iconRight, however I'm limited to the icon set of Feather Icons. I would like to insert a Font Awesome icon in the left or right, possibly by passing in a value for contentLeft or contentRight on the button.

vrimar commented 5 years ago

I'm planning on supporting custom icons (and maybe content) in one of the upcoming releases. You could technically pass a custom icon like in this example via the label attr.

This isn't ideal though, you'll have to handle the CSS styles/spacing yourself.