Components · Reference
AdminOrganizationForm
Create or edit an organization from an admin page.
Preview
Loading preview…
Usage
tsx
import { AdminOrganizationForm } from "@krak-stack/auth/admin-organization-form/react";
export const Example = ({
closeForm,
refreshOrganizations,
}: {
closeForm: () => void;
refreshOrganizations: () => void;
}) => (
<AdminOrganizationForm onClose={closeForm} onSaved={refreshOrganizations} />
);
Omit organization to create one, or pass an existing organization to edit it. Provide onSaved and onClose so the application can refresh the list and close the form.