mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
Refactor tabs so that: - Behavior add-ons, such as query params, are HOCs in ui-patterns, to keep the basic Tabs minimal - No dependency on next/router (this is to smooth out a separate App Router migration PR) - No dependency on useSearchParams either (this is to preserve static generation of as much HTML content as possible, for SEO purposes -- see comment about client-rendering bailout when using useSearchParams) - Syncing behavior better localized in a hook Minor enhancement to save tab preferences to local storage so they are remembered between sessions
Supabase UI Patterns
This package should be used for components which are built using NPM libraries (react-markdown, reactflow for example),
which make no sense to be included in all apps. It should also be used for components which are constructed using various
components from the ui package.
This package does not have a barrel file - each component has to be imported from its index
(ui-patterns/PrivacySettings, for example). This is intentional so that adding a new component which is used only in
1 or 2 apps doesn't burden the rest of the apps.