Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add organizationProfileProps to OrganizationSwitcher props #367

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
</>,
],
},
]}
/>
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