Browse docs

<OrganizationList />

Full-page list of the signed-in user's organizations. Useful right after sign-in to bounce users into their workspace.

Copy this quickstart guide as a prompt for LLMs to implement KolayLogin in your application.

Usage

import { OrganizationList } from '@kolaylogin/react';

export default function OrgsPage() {
  return <OrganizationList hrefPattern="/org/{slug}" />;
}

Props

  • hrefPattern — destination for each row. Placeholders: {slug} or {id}. Default /org/{slug}.
  • createOrganizationUrl — path to the creation flow. Default /create-organization.

Clicking a row also flips the active org on the server, so the next API call respects the selection.