Parameters
| Parameter | Type | Description |
|---|---|---|
props? | SignOutButtonProps | The props for the component. |
Returns
Element
The rendered component.
function SignOutButton(props?: SignOutButtonProps): Element;
| Parameter | Type | Description |
|---|---|---|
props? | SignOutButtonProps | The props for the component. |
Element
The rendered component.
// Render a sign out button
<SignOutButton onSuccess={() => console.log("Sign out success")} />
// Render a sign out button with a custom label, size, and variant
<SignOutButton size="sm" variant="secondary">Log out</SignOutButton>
// Render a sign out button with a custom button element
<SignOutButton asChild>
<button className="custom-button">Log out</button>
</SignOutButton>
Was this page helpful?