Skip to content

A tiny (1kb minified) javascript plugin which automatically stylizes the native file input field.

Notifications You must be signed in to change notification settings

pb03/input-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Input-file.js

A tiny (1kb minified) javascript plugin that automatically stylizes the native input field.

Demo

Live demo

Installation

npm i input-file

Usage

<html lang="en">
<head>
	<link rel="stylesheet" href="../input-file.css">
</head>

<body>

	<input type="file" name="files" multiple>

	<script src="../input-file.min.js"></script>
	<script>
		new InputFile({
			// options
		});
	</script>
</body>
</html>

Options

Property Default Description
buttonText 'Choose files' Label for the button
hint 'or drag and drop files here' Help text
message 'files chosen' Message shown after selecting files

About

A tiny (1kb minified) javascript plugin which automatically stylizes the native file input field.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published