Skip to content

Commit

Permalink
Add organizationProfileProps to OrganizationSwitcher props
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef committed Sep 29, 2023
1 parent f61918c commit 1f2d7ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion docs/components/organization/organization-switcher.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,23 @@ All props below are optional.
</>,
],
},
{
cells: [
<code>defaultOpen</code>,
<code>boolean</code>,
<>Controls the default state of the <code>{"<OrganizationSwitcher />"}</code></>,
],
},
{
cells: [
<code>organizationProfileProps</code>,
<code>object</code>,
<>
Specify options for the underlying <code>{"<OrganizationProfile />"}</code> component.
<br/>
e.g. <code>{"{appearance: {...}}"}</code>
</>,
],
},
]}
/>
3 changes: 2 additions & 1 deletion docs/references/javascript/clerk/organization-switcher.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,5 @@ All props below are optional.
| `afterLeaveOrganizationUrl` | `string` | Full URL or path to navigate to after the user leaves the currently active organization. |
| `afterSwitchOrganizationUrl` | `string` | Full URL or path to navigate after a successful organization switch. |
| `hidePersonal` | `boolean` | By default, users can switch between organization and their personal account. This option controls whether `<OrganizationSwitcher />` will include the user's personal account in the organization list. Setting this to `false` will hide the personal account entry, and users will only be able to switch between organizations. <br />Defaults to: `true` |
| `defaultOpen` | `boolean` | Controls the default state of the `<OrganizationSwitcher />` component. |
| `defaultOpen` | `boolean` | Controls the default state of the `<OrganizationSwitcher />` component. |
| `organizationProfileProps` | `object` | Specify options for the underlying `<OrganizationProfile />` component.<br />e.g. `{appearance: {...}}` |

0 comments on commit 1f2d7ce

Please sign in to comment.