Skip to main content

<OrganizationList />

The OrganizationList component renders a list of organizations that the current user belongs to. Clicking an organization in the list switches the active organization automatically.

Usage

Basic Usage

src/OrganizationsPage.vue
<script setup>
import { OrganizationList } from '@thunderid/vue'
</script>

<template>
<div>
<h1>My Organizations</h1>
<OrganizationList />
</div>
</template>

Listening for Selection

The component emits a select event before switching, which is useful for analytics, custom navigation, or showing a confirmation dialog:

src/OrganizationsPage.vue
<script setup>
import { OrganizationList } from '@thunderid/vue'

function handleSelect(org) {
console.log('Switching to organization:', org.name)
}
</script>

<template>
<OrganizationList @select="handleSelect" />
</template>

Props

PropTypeRequiredDescription
classNamestringExtra CSS class added to the root element

Events

EventPayloadDescription
selectOrganizationEmitted when the user selects an organization, before switching takes effect
ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© WSO2 LLC. All rights reserved.