Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StefanNieuwenhuis/ae66f2ba235f3e6cd295962199f8269d to your computer and use it in GitHub Desktop.
Save StefanNieuwenhuis/ae66f2ba235f3e6cd295962199f8269d to your computer and use it in GitHub Desktop.
stenciljs-image-upload__render-template
render() {
return <div class="image-upload">
<div class="image-upload__edit">
<label htmlFor="file"></label>
<input type="file" name="files[]" id="file" accept="image/*" class="image-upload__input"
onChange={($event: any) => this.onInputChange($event.target.files)} />
</div>
<div class="image-upload__preview">
<div id="image-preview"></div>
</div>
</div>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment