Wocha Docs

Component playground

Interactive preview of Wocha UI components with configurable props and generated JSX.

Explore @wocha/ui components with a live mock preview. Toggle props and copy the generated JSX into your application.

Interactive preview

Live preview

Sign in to continue

Welcome back. Sign in to access your account.

Generated JSX

import { SignIn } from "@wocha/ui";
import "@wocha/ui/styles.css";

<SignIn
/>

Supported components

ComponentDescription
SignInHosted sign-in with social providers, passkeys, and layout options
SignUpRegistration flow entry point
UserButtonAvatar dropdown with modal/navigation profile modes
UserProfileSelf-service account management
OrganizationProfileOrganisation management with members and settings
OrgSwitcherOrganisation selection for multi-tenant users
CreateOrganizationStandalone organisation creation form
OrganizationListMembership list with invitations
ShowDeclarative conditional render (when prop)
SignInButton / SignUpButton / SignOutButtonUnstyled auth triggers
WochaLoading / WochaLoadedAuth lifecycle state components
ProtectConditional rendering based on authentication, roles, or permissions

See dedicated component reference pages for full props and examples.

Production usage

The playground uses mock data. In your app, wrap components with WochaProvider or WochaSessionProvider and import the stylesheet:

import { WochaThemeProvider, SignIn, UserButton } from "@wocha/ui";
import "@wocha/ui/styles.css";

Set apiUrl when using profile or permission features — see the UI components guide.

On this page