input-file

1.1.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i input-file

    Weekly Downloads

    6

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    334 kB

    Total Files

    8

    Last publish

    Collaborators

    • prasanjit