Auth buttons
Unstyled SignInButton, SignUpButton, and SignOutButton trigger wrappers.
Wocha provides minimal trigger buttons that call auth actions from context. Use them when you want full control over button styling.
Installation
pnpm add @wocha/ui @wocha/reactOr scaffold with the CLI
npx @wocha/cli init --framework nextjsSignInButton
Triggers the hosted sign-in flow.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | "Sign in" | Button label |
className | string | — | CSS class for styling |
redirectUrl | string | — | URL to return to after sign-in |
SignUpButton
Triggers the hosted registration flow.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | "Sign up" | Button label |
className | string | — | CSS class for styling |
redirectUrl | string | — | URL to return to after registration |
SignOutButton
Signs the user out and optionally redirects.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | "Sign out" | Button label |
className | string | — | CSS class for styling |
redirectUrl | string | — | URL to redirect to after sign-out |
Usage with Show
Combine with <Show> for conditional rendering:
Framework notes
These are client components. In Next.js, import them in client-marked files ("use client").