Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about extending the library #28

Open
adicirstei opened this issue Apr 26, 2018 · 3 comments
Open

Question about extending the library #28

adicirstei opened this issue Apr 26, 2018 · 3 comments

Comments

@adicirstei
Copy link

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
Copy link
Owner

sharkdp commented Apr 26, 2018

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
Copy link
Author

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
Copy link
Owner

sharkdp commented Apr 29, 2018

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants