The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { BookOpenIcon } from 'lucide-react'
import { Button } from 'ui'
interface DocsButtonProps {
href: string
abbrev?: boolean
className?: string
topic?: string
/** Custom button text, e.g. to distinguish multiple docs buttons side by side. */
label?: string
}
export const DocsButton = ({ href, abbrev = true, className, topic, label }: DocsButtonProps) => {
return (
<Button
asChild
variant="default"
className={className}
icon={<BookOpenIcon />}
onClick={(e) => e.stopPropagation()}
>
<a
target="_blank"
rel="noopener noreferrer"
href={href}
aria-label={topic ? `${topic} documentation (opens in new tab)` : undefined}
>
{label ?? (abbrev ? 'Docs' : 'Documentation')}
</a>
</Button>
)
}