Free, open-source map component library for shadcn/ui
Built with React, Leaflet, React Leaflet, and TypeScript
Features interactive, customizable maps for web applications
Supports copy-paste integration with shadcn/ui CLI
MIT-licensed with Vercel-hosted demo
Shadcn Map is a free, open-source map component library designed to integrate beautiful, interactive maps into shadcn/ui projects. Developed to enhance shadcn/ui's ecosystem, its primary goal is to provide developers with a seamless way to add mapping functionality to React applications, targeting frontend developers building dashboards, location-based apps, or e-commerce platforms. Built with React, Leaflet, React Leaflet, TypeScript, and Tailwind CSS, Shadcn Map offers components that leverage Leaflet's lightweight mapping library for features like markers, popups, and zoom controls, styled with shadcn/ui's accessible UI. It emphasizes a copy-paste approach, allowing developers to integrate maps directly via the shadcn/ui CLI. For shadcn/ui enthusiasts, Shadcn Map is a perfect fit, extending shadcn/ui's accessible foundation to deliver polished, interactive map components for React applications.
Interactive Maps: Embeddable maps with zoom, pan, and marker support using Leaflet.
Shadcn UI Integration: Builds on shadcn/ui for accessible, customizable map UI elements.
Accessibility: Inherits shadcn/ui's WAI-ARIA compliance with Radix UI primitives.
CLI Support: Add components with npx shadcn@latest add for quick setup.
Responsive Design: Tailwind CSS ensures maps adapt to all screen sizes.
Type Safety: TypeScript ensures robust, error-free development.
Seamless Integration: Perfectly complements shadcn/ui for map-enhanced UIs.
Free and Open-Source: MIT license allows unrestricted use and modification.
Lightweight Mapping: Leaflet minimizes bundle size compared to Google Maps.
Accessible: WAI-ARIA support via shadcn/ui ensures inclusive map interactions.
Easy Setup: Copy-paste model with CLI simplifies adding maps to projects.
React Dependency: Limited to React projects, though fitting for shadcn/ui.
Setup Complexity: Requires shadcn/ui, Tailwind CSS, and Leaflet dependencies.
Performance Overhead: Maps may impact load times on low-end devices.
Learning Curve: Familiarity with shadcn/ui, React, and Leaflet needed for effective use.
Shadcn Map provides a variety of shadcn/ui-powered map components:
Map Component: Core interactive map with zoom and pan controls.
Marker Layer: Add custom markers with popups and tooltips.
Tile Layer: Base map layers with various providers (e.g., OpenStreetMap).
Popup UI: shadcn/ui-styled popups for marker information.
Shadcn Map operates on a Free model:
Free Access: All components are free under the MIT license.
No Pro Version: No premium features or paid tiers mentioned.
Shadcn Map integrates with:
React: Core framework for building components.
ShadCN UI: Accessible component library for styling and structure.
Tailwind CSS: Utility-first styling for responsive design.
Leaflet: Lightweight mapping library for core functionality.
React Leaflet: React wrapper for Leaflet integration.
Next.js: Supports server-side rendering and routing.
Yes, all components are free under the MIT license.
Yes, it inherits shadcn/ui's WAI-ARIA compliance through Radix UI.
Highly customizable with Tailwind CSS and copy-paste code ownership.
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! 🚀