Tailwind File Upload UI (Only UI)
Web2tailwind.com

Output

Code

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="https://unpkg.com/[email protected]^1.0/dist/tailwind.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js" defer></script>
    <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Roboto&display=swap" rel="stylesheet">
</head>

<body style="font-family:Roboto">
    <div class="flex bg-gray-300 justify-center items-center h-screen md:-mx-4">
        <div>
            <div
                class="border-4 border-dashed border-gray-500 w-full bg-white h-20 px-6 flex items-center justify-center rounded-lg">
                <p>Drag files here or <span class="upload__button">Browse</span></p>
            </div>
            <div>
                <div class="flex items-center bg-white pl-2 pr-4 py-2 rounded-lg my-1">
                    <img src="https://i.picsum.photos/id/953/536/354.jpg" class="rounded-lg w-12 h-10">
                    <div class="flex-1 px-3">
                        <span class="text-gray-800"> Images.png
                        </span>
                    </div>
                    <div>&times;</div>
                </div>
                <div class="flex items-center bg-white pl-2 pr-4 py-2 rounded-lg my-1">
                    <img src="https://i.picsum.photos/id/900/536/354.jpg" class="rounded-lg w-12 h-10">
                    <div class="flex-1 px-3">
                        <span class="text-gray-800"> Images.png
                        </span>
                    </div>
                    <div>&times;</div>
                </div>
                <div class="flex items-center bg-white pl-2 pr-4 py-2 rounded-lg my-1">
                    <img src="https://i.picsum.photos/id/101/536/355.jpg" class="rounded-lg w-12 h-10">
                    <div class="flex-1 px-3">
                        <span class="text-gray-800"> Images.png
                        </span>
                    </div>
                    <div>&times;</div>
                </div>
            </div>
        </div>
    </div>
</body>

</html>
© 2019 - 2020 Web2tailwind.com