The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { type ComponentPropsWithoutRef } from 'react'
import { cn } from 'ui'
export function Link({ className, href, ...props }: ComponentPropsWithoutRef<'a'>) {
// A simplified link component for Supabase Library examples
// Renders as a regular <a> tag to support iframe base path routing
// Remove leading slash for relative paths to work with base tag
const relativeHref = href?.startsWith('/') ? href.slice(1) : href
return <a {...props} href={relativeHref} className={cn('cursor-pointer', className)} />
}