Browse docs

<CreateOrganization />

Self-service organization creation form. Auto-derives a URL slug from the name as the user types.

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

Usage

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

export default function NewOrgPage() {
  return (
    <CreateOrganization
      afterCreateOrganizationUrl="/dashboard"
      onCreated={(orgId) => console.log('created', orgId)}
    />
  );
}

Props

  • afterCreateOrganizationUrl — redirect target after success.
  • onCreated(orgId) — callback before the redirect.
  • title, subtitle — copy overrides.

On success the component also PATCH /v1/orgs/current's the new org so the user lands inside it.