sharkdp / purescript-flare

A special-purpose UI library for Purescript
287 stars 17 forks source link

Question about extending the library #28

Open adicirstei opened 6 years ago

adicirstei commented 6 years ago

Hi! Thanks for taking the time to develop this project. I really like it.

I was wondering what would be the most straightforward way to extend the existing collection of components? For example I would like to add <input type="file"> one.

sharkdp commented 6 years ago

Hi,

Thank you for the feedback!

The easiest way to add another input type would probably be to modify the Flare source code itself (I'd appreciate a pull request!) by following a similar example. For <input type="file">, maybe start with the color input or the string input. It's probably only going to require some copy & paste + renaming and small adaptations.

What would be the output type? data File = File String with String being the filename?

adicirstei commented 6 years ago

The output type I would rather say it should be DOM.File.Types.File, in order to be able to do something with it.

sharkdp commented 6 years ago

:+1: