Free, open-source Svelte image uploader component
Built with SvelteKit, Tailwind CSS, TypeScript, Flowbite Svelte
Features client-side image validation and drag-and-drop
Supports accessibility and customizable styles
MIT-licensed with Vercel-hosted demo
Svelte Image Uploader is a free, open-source image upload component developed by Cheveniko, inspired by shadcn/ui, designed to provide a modern, accessible file upload experience for Svelte applications. Its primary goal is to offer a reusable, client-side image uploader with drag-and-drop functionality, targeting Svelte developers building web apps like portfolios, CMS dashboards, or e-commerce platforms. Built with SvelteKit, Tailwind CSS, TypeScript, and Flowbite Svelte, it uses svelte-file-dropzone for file handling and validates images client-side with size and type checks (e.g., PNG, JPG). The component is styled with Tailwind CSS for responsiveness and integrates Flowbite Svelte for accessible UI elements. For shadcn/ui fans, Svelte Image Uploader is a perfect fit, delivering a lightweight, customizable solution with a Vercel-hosted demo.
Drag-and-Drop Upload: Supports drag-and-drop via svelte-file-dropzone.
Client-Side Validation: Validates image types (PNG, JPG, JPEG) and size (e.g., 1MB max).
Shadcn-Inspired UI: Modern, accessible design inspired by shadcn/ui’s aesthetic.
Responsive Design: Tailwind CSS ensures compatibility across devices.
Accessibility: ARIA attributes and keyboard navigation via Flowbite Svelte.
Preview Support: Displays image previews before upload (inferred from shadcn analogy).
Type Safety: TypeScript for robust, error-free development.
Customizable Styles: Tailwind CSS classes for easy styling adjustments.
Shadcn-Inspired: Familiar UI for shadcn/ui users, adapted for Svelte.
Free and Open-Source: MIT license with no usage restrictions.
Accessible: Flowbite Svelte ensures ARIA compliance for inclusivity.
Lightweight: Client-side focus minimizes server load during validation.
Developer-Friendly: TypeScript and Tailwind enhance customization.
Vercel Demo: Live demo showcases functionality (inferred from shadcn patterns).
Community Potential: Early project with room for Svelte community growth.
Svelte-Only: Limited to Svelte/SvelteKit ecosystems.
Client-Side Only: No direct server-side upload integration in core component.
Learning Curve: Requires SvelteKit, Flowbite Svelte, and svelte-file-dropzone knowledge.
Documentation Needs: Setup and customization guides could be more detailed.
Early Stage: New project may lack extensive community or mature features.
Node Version Requirement: Requires Node.js 20.x for File Interface support.
No Backend Example: Lacks built-in server-side handling (e.g., S3, Cloudflare R2).
Svelte Image Uploader provides a variety of upload-related components:
ImageUploader: Main component for drag-and-drop and file input.
Dropzone: Svelte-file-dropzone wrapper for drag-and-drop UI.
PreviewPane: Displays image previews client-side (inferred from shadcn analogy).
ValidationMessage: UI for error messages (e.g., invalid file type/size).
FileInput: Accessible file input styled with Flowbite Svelte.
Svelte Image Uploader operates on a Free model:
Free Access: Fully open-source under MIT license, available via GitHub.
No Pro Version: No premium features or paid tiers mentioned.
Svelte Image Uploader integrates with:
SvelteKit: Core framework for component development and routing.
Tailwind CSS: Utility-first styling for responsive design.
TypeScript: Static typing for robust development.
Flowbite Svelte: Accessible UI components for file inputs and styling.
svelte-file-dropzone: Drag-and-drop file handling (v2.0.9).
Vercel: Hosting for demo site.
Cloudflare R2/S3 (Optional): Potential for server-side storage integration.
Svelte Image Uploader is a free, shadcn-inspired image upload component for Svelte, using Flowbite Svelte for accessible UI.
Yes, fully open-source under MIT license.
No, designed for Svelte/SvelteKit ecosystems.
Yes, via Flowbite Svelte’s ARIA-compliant components.
Image validation built in and customizable styles with Tailwindcss.
Next.js Starter Kit with TypeScript, Shadcn, Tailwind & Supabase.
Customize theme for shadcn/ui with tweakcn's interactive editor.
Submit your Shadcn product to AllShadcn, get featured, and drive genuine traffic while showcasing your work to the world. Turn your creativity into revenue and begin selling today! 🚀