Files
Kody JacksonandClaude Sonnet 5.5 701730e3eb chore(kb,www,docs) - Add in relevant cross-links between the Supabase Component Library and kb,www,docs (#53237)
## Problem

After #53183 and #52567 have been addressed, we should strengthen the
interconnections between the UI library and the rest of the Supabase
ecosystem.

## Solution

- Adds contextual links for `/library`, Auth / Realtime category pages,
and specific Auth / Realtime components. Hits top-level product pages,
docs, kb, and blogs.

## Preview links

N/A, link changes are relatively atomic so easier to review without many
preview links.

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 08:37:14 -06:00

36 lines
1.5 KiB
Plaintext

---
title: Supabase Client Libraries
description: Supabase client for React Single Page Applications
preview: <BlockOverview name="supabase-client-react" showFiles />
---
## Installation
<BlockItem name="supabase-client-react" />
## Usage
This block installs a Supabase client for connecting your React project to Supabase. It's designed for use in client-side components.
If you've already set up a Supabase client in your project, you can just continue using that existing setup.
### Getting started
After installing the block, you'll have the following environment variables in your `.env.local` file:
```env
VITE_SUPABASE_URL=
VITE_SUPABASE_PUBLISHABLE_KEY=
```
- If you're using supabase.com, you can find these values in the [Connect modal](https://supabase.com/dashboard/project/_?showConnect=true&connectTab=frameworks&framework=react&using=vite&with=supabasejs) under App Frameworks or in your project's [API settings](https://supabase.com/dashboard/project/_/settings/api).
- If you're using a local instance of Supabase, you can find these values by running `supabase start` or `supabase status` (if you already have it running).
## Further reading
- [Generating TypeScript types for your client](https://supabase.com/docs/guides/api/rest/generating-types)
- [Use Supabase with React](https://supabase.com/docs/guides/getting-started/quickstarts/reactjs)
- [API keys](https://supabase.com/docs/guides/getting-started/api-keys)
- [Securing your API](https://supabase.com/docs/guides/api/securing-your-api)