The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
/**
* Explicit tabIndex for keyboard focus (Safari skips buttons otherwise).
* - Explicit `tabIndex` prop takes precedence
* - If disabled, default to -1
* - Otherwise, default to 0
*/
export function getExplicitTabIndex(
tabIndex: number | undefined,
disabled?: boolean | null
): number {
return tabIndex !== undefined ? tabIndex : disabled ? -1 : 0
}