Official shadcn/ui Components for Supabase

The official Supabase UI component library based on shadcn/ui. Add pre-built Auth, Storage, and Realtime components to your Supabase projects.

Supabase UI is an open-source component library from the Supabase team. It provides a collection of UI components for integration with Supabase backend services. Built on top of the popular shadcn/ui system.

The primary function of Supabase UI is to offer pre-built components for common application features. These include authentication flows, file management connected to Supabase Storage, and elements for displaying real-time data updates.

You can use this library to accelerate the development of applications that utilize Supabase. It helps implement complex frontend features like user sign-up, login, file uploads, and real-time displays with less boilerplate code.

Features

🧩 Extensible Components – Modify primitives to match project-specific needs

🔌 Supabase Client Integration – Works with both client-side and server-side Supabase implementations

🛠️ Framework Flexibility – Compatible with Next.js, React Router, TanStack Start, and React SPA

🔄 Composable Structure – Mix and combine components to create custom solutions

🔒 Authentication Flows – Pre-built sign-in and sign-up components

Real-time Features – Components for cursor tracking, avatars, and chat functionality

Use Cases

  • Rapid Authentication Setup: Implement complete user sign-in, sign-up, and password management flows quickly by adding the Password-Based Auth component.
  • Direct File Uploads: Use the Dropzone component to create a user-friendly interface for uploading files directly to Supabase Storage, handling the necessary client-side logic.
  • Real-time Collaboration Features: Display real-time user activity, such as collaborator cursors on a page (Realtime Cursor) or stacked avatars of currently active users (Realtime Avatar Stack), adding interactive elements to applications.
  • Building Chat Interfaces: Leverage the Realtime Chat component as a foundation for implementing real-time messaging features within your application.
  • Displaying User Information: Easily show the current logged-in user’s profile picture using the Current User Avatar component.

Related Resources

  • Supabase Documentation: The official documentation for all Supabase services, including Auth, Storage, and Realtime databases. https://supabase.com/docs
  • shadcn/ui: The documentation and component registry for shadcn/ui, the foundation upon which Supabase UI is built. https://ui.shadcn.com/

FAQs

Q: How does adding a component work?
A: You run an npx shadcn-ui@latest add <component_url> command in your terminal. This fetches the component definition, copies the source files into your project directory, and installs any necessary dependencies.

Q: Will adding components overwrite my existing files?
A: The command checks for file conflicts. If a file with the same name already exists, it will prompt you to either overwrite the existing file or skip adding the new one. It does not automatically overwrite files.

Q: Can I use Supabase UI in a project I’ve already started?
A: Yes, you can add Supabase UI components to existing projects. It’s recommended to commit your current changes to Git before running the add command so you can easily review the files added or modified.

Q: I already use shadcn/ui. What do I need to do?
A: If shadcn/ui is already configured in your project, you can directly use the npx shadcn-ui@latest add <component_url> command to add Supabase UI components without additional setup.

Preview

supabase-ui

supabase

supabase

An open source Firebase alternative. Start your project with a Postgres database, Authentication, instant APIs, Edge Functions, Realtime subscriptions, Storage, and Vector embeddings.

Leave a Reply

Your email address will not be published. Required fields are marked *