@@ -17,7 +17,7 @@ import { OrganizationProfileMembersPanel } from './organization-profile-members-
1717/** Everything `<OrganizationProfile />` takes: your own pages and their order, the page it opens on, and where leaving the organization lands. */
1818export interface OrganizationProfileProps
1919 extends
20- Pick < OrganizationProfileViewProps , 'customPages' | 'pageOrder' > ,
20+ Pick < OrganizationProfileViewProps , 'customPages' | 'pageOrder' | 'showSearch' > ,
2121 Pick < OrganizationProfileOptions , 'afterLeaveOrganizationUrl' > {
2222 /**
2323 * The page the profile opens on: a built-in page's id, or a custom page's `path`. Unlike
@@ -64,6 +64,12 @@ export interface OrganizationProfileProps
6464 * ```
6565 *
6666 * @example
67+ * `showSearch` adds a search field above the navigation that finds pages, and the sections on them.
68+ * ```tsx
69+ * <OrganizationProfile showSearch />
70+ * ```
71+ *
72+ * @example
6773 * `customPages` adds your own pages; `pageOrder` places them among the built-in ones.
6874 * ```tsx
6975 * <OrganizationProfile
@@ -84,6 +90,7 @@ export function OrganizationProfile({
8490 defaultPage,
8591 afterLeaveOrganizationUrl,
8692 fallback,
93+ showSearch,
8794 apiKeysProps : { hide : hideAPIKeys = false , ...apiKeysProps } = { } ,
8895} : OrganizationProfileProps ) {
8996 const model = useOrganizationProfileModel ( ) ;
@@ -106,6 +113,7 @@ export function OrganizationProfile({
106113 onPageChange = { setActivePage }
107114 customPages = { customPages }
108115 pageOrder = { pageOrder }
116+ showSearch = { showSearch }
109117 pages = { {
110118 general : < OrganizationProfileGeneralPanel /> ,
111119 members : model . pages . includes ( 'members' ) ? < OrganizationProfileMembersPanel /> : undefined ,
0 commit comments