Reputation: 6316
I'm wanting to make a paper/material design version of the <input type="file">
, can anybody suggest anything for my code below?
<paper-input type="text" id="fileName" placeholder="File" readonly></paper-input>
<paper-button id="changePicture" class="changePicture">Upload Picture</paper-button>
Upvotes: 0
Views: 2027
Reputation: 3537
You need to use paper-input-container to get the same behavior and material design as paper-input.
If you are brave enough to explore others code you can take a look at Vaadin-upload element :)
Upvotes: 1
Reputation: 1832
Find on webcomponents.org, https://www.webcomponents.org/search/upload
e.g. http://file-input.raynicholus.com/components/file-input/demo.html
Upvotes: 0