Basejump React Components

Basejump provides some easy to use components and hooks for launching your app even faster. Out of the box you'll get hooks for interacting with the Basejump APIs client side, and some utility components for things like showing/hiding content based on authentication status.

We've also provided UI components built on top of shadcn/ui. These can be copy/pasted into your app and customized to your liking. Under the hood, shadcn leverages Tailwind CSS for styling and Radix UI for component primitives.



Getting started with Next.js

Basejump provides a Next.js specific integration that depends on the Supabase Auth Helpers. It's identical to the React package except that it handles creating your Supabase client for you internally.

1. Create a new application using the Supabase Next.js template

The fastest way to get started is to use the Supabase Next.js template.

npx create-next-app -e with-supabase your-app-name

If you already have an existing app, then you'll need to install the @supabase/supabase-js and @supabase/ssr packages. The ssr package is brand new, so the easiest way to see how it's used is to check out the template repo from above.

2. Install shadcn and tailwind (optional)

If you plan on leveraging the Basejump UI components, you'll need to get shadcn setup for your app. You can follow the shadcn installation guide for Next.js. It's quick and easy!

3. Install the Basejump Next.js package

    yarn add @usebasejump/next


Getting started with React

Basejump provides a Next.js specific integration that depends on the Supabase Auth Helpers. It's identical to the React package except that it handles creating your Supabase client for you internally.

1. Install the Supabase JS client

Follow the Supabase guide to setting up React.

2. Install shadcn and tailwind (optional)

If you plan on leveraging the Basejump UI components, you'll need to get shadcn setup for your app. You can follow the shadcn manually installation guide.

3. Install the Basejump React package

yarn add @usebasejump/react