diff --git a/apps/docs/app/page.tsx b/apps/docs/app/page.tsx index ee6dd551ad..44fa2d0b76 100644 --- a/apps/docs/app/page.tsx +++ b/apps/docs/app/page.tsx @@ -187,6 +187,13 @@ const additionalResources = [ icon: 'integrations', href: '/guides/integrations', }, + { + title: 'Supabase UI', + description: 'A collection of pre-built Supabase components to speed up your project.', + icon: 'ui', + href: 'https://supabase.com/ui', + external: true, + }, ] const HomePage = () => ( @@ -303,6 +310,7 @@ const HomePage = () => ( href={resource.href} className="col-span-12 md:col-span-6 lg:col-span-3" passHref + target={resource.external ? '_blank' : undefined} > {resource.description} diff --git a/apps/docs/components/Navigation/Navigation.commands.tsx b/apps/docs/components/Navigation/Navigation.commands.tsx index 2ab00c9e48..2a97ee8fc8 100644 --- a/apps/docs/components/Navigation/Navigation.commands.tsx +++ b/apps/docs/components/Navigation/Navigation.commands.tsx @@ -151,6 +151,12 @@ const navCommands = [ icon: () => , enabled: isFeatureEnabled('integrations:partners'), }, + { + id: 'nav-ui', + name: 'Go to Supabase UI Library', + route: 'https://supabase.com/ui', + icon: () => , + }, ] satisfies Array const filteredNavCommands = navCommands.filter((command) => command.enabled !== false) diff --git a/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsx b/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsx index 2594209642..2a17390edf 100644 --- a/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsx +++ b/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsx @@ -30,6 +30,7 @@ import { IconSecurity, IconSupport, IconTroubleshooting, + IconUI, } from './MenuIcons' function getMenuIcon(menuKey: string, width: number = 16, height: number = 16, className?: string) { @@ -102,6 +103,8 @@ function getMenuIcon(menuKey: string, width: number = 16, height: number = 16, c return case 'queues': return + case 'ui': + return default: return } diff --git a/apps/docs/components/Navigation/NavigationMenu/MenuIcons.tsx b/apps/docs/components/Navigation/NavigationMenu/MenuIcons.tsx index 1eaed4adbe..7306d2c55a 100644 --- a/apps/docs/components/Navigation/NavigationMenu/MenuIcons.tsx +++ b/apps/docs/components/Navigation/NavigationMenu/MenuIcons.tsx @@ -666,3 +666,31 @@ export function IconTroubleshooting({ width = 16, height = 16, className }: Home ) } + +export function IconUI({ width = 16, height = 16, className }: HomeMenuIcon) { + return ( + + + + + + ) +} diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts index 25b3102707..2612788b20 100644 --- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts +++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts @@ -261,6 +261,12 @@ export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [ href: '/reference/api/introduction' as `/${string}`, level: 'reference_javascript', }, + { + label: 'UI Library', + icon: 'ui', + href: 'https://supabase.com/ui' as `/${string}`, + level: 'ui', + }, ], [ { label: 'Data API' },