Skip to content

Commit

Permalink
Add organizationProfileProps to OrganizationSwitcher props (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef committed Oct 3, 2023
1 parent 3b95c2c commit a0fb406
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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>
</>,
],
},
]}
/>
1 change: 1 addition & 0 deletions docs/references/javascript/clerk/organization-switcher.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ All props below are optional.
| `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 />`][orgswitcher-ref] 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 />`][orgswitcher-ref] component. |
| `organizationProfileProps` | `object` | Specify options for the underlying [`<OrganizationProfile />`][orgprofile-ref] component.<br />e.g. `{appearance: {...}}` |
[components-ref]: /docs/components/overview
[ap-ref]: /docs/account-portal/overview
Expand Down

0 comments on commit a0fb406

Please sign in to comment.